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