public final class IntTag extends NumberTag
TAG_Int tag.| Constructor and Description |
|---|
IntTag(String name,
int value)
Creates the tag.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
int |
intValue()
Get the value as an
int. |
String |
toString() |
public IntTag(String name, int value)
name - The name.value - The value.public int 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).