public class ByteTag extends java.lang.Object implements INbtNumber
| Constructor and Description |
|---|
ByteTag()
Create a byte tag with the value 0.
|
ByteTag(boolean value)
Create a byte tag with the given boolean value.
|
ByteTag(byte value)
Create a byte tag with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
booleanValue()
Get the value as a boolean.
|
byte |
byteValue() |
INbtTag |
copy() |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
NbtType |
getNbtType() |
byte |
getValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
java.lang.Number |
numberValue() |
void |
setValue(boolean value)
Set the value to the given boolean value.
|
ByteTag |
setValue(byte value)
Set the byte value.
|
short |
shortValue() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasArrayTag, asByteArrayTag, asByteTag, asCompoundTag, asDoubleTag, asFloatTag, asIntArrayTag, asIntTag, asListTag, asLongArrayTag, asLongTag, asNumberTag, asShortTag, asStringTag, isArrayTag, isByteArrayTag, isByteTag, isCompoundTag, isDoubleTag, isFloatTag, isIntArrayTag, isIntTag, isListTag, isLongArrayTag, isLongTag, isNumberTag, isShortTag, isStringTagpublic ByteTag()
public ByteTag(byte value)
value - The valuepublic ByteTag(boolean value)
true -> 1false -> 0value - The valuepublic byte getValue()
public ByteTag setValue(byte value)
value - The new valuepublic void setValue(boolean value)
true -> 1false -> 0value - The new valuepublic boolean booleanValue()
0 -> false!= 0 -> truepublic byte byteValue()
byteValue in interface INbtNumberpublic short shortValue()
shortValue in interface INbtNumberpublic int intValue()
intValue in interface INbtNumberpublic long longValue()
longValue in interface INbtNumberpublic float floatValue()
floatValue in interface INbtNumberpublic double doubleValue()
doubleValue in interface INbtNumberpublic java.lang.Number numberValue()
numberValue in interface INbtNumberNumberpublic NbtType getNbtType()
getNbtType in interface INbtTagpublic INbtTag copy()
public boolean equals(java.lang.Object o)
public int hashCode()