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