public final class LongTag extends NumberTag
TAG_Long tag.| Constructor and Description |
|---|
LongTag(String name,
long value)
Creates the tag.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getValue() |
int |
intValue()
Get the value as an
int. |
String |
toString() |
public LongTag(String name, long value)
name - The name.value - The value.public long getValue()
public int intValue()
NumberTagint. Performs the same operation as casting
the value to an int (meaning that if the value is too large it
will overflow without throwing an exception).