| Constructor and Description |
|---|
ByteTag()
Create a byte tag with the value 0.
|
ByteTag(boolean value)
Create a byte tag with the given boolean value.
true -> 1false -> 0 |
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.
0 -> false!= 0 -> true |
byte |
byteValue() |
ByteTag |
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.
true -> 1false -> 0 |
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()
public short shortValue()
shortValue in interface NbtNumberpublic int intValue()
public long longValue()
public float floatValue()
floatValue in interface NbtNumberpublic double doubleValue()
doubleValue in interface NbtNumberpublic java.lang.Number numberValue()
numberValue in interface NbtNumberNumberpublic NbtType getNbtType()
getNbtType in interface NbtTagpublic ByteTag copy()
public boolean equals(java.lang.Object o)
public int hashCode()