public class ShortTag extends java.lang.Object implements INbtNumber
| Constructor and Description |
|---|
ShortTag()
Create a short tag with the value 0.
|
ShortTag(short value)
Create a short tag with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
INbtTag |
copy() |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
NbtType |
getNbtType() |
short |
getValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
java.lang.Number |
numberValue() |
ShortTag |
setValue(short value)
Set the short 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 ShortTag()
public ShortTag(short value)
value - The valuepublic short getValue()
public ShortTag setValue(short value)
value - The new valuepublic 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()