Package net.minecraft.nbt
Class NumericTag
java.lang.Object
net.minecraft.nbt.NumericTag
- All Implemented Interfaces:
Tag
-
Field Summary
Fields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.nbt.Tag
accept, accept, acceptAsRoot, copy, getAsString, getId, getType, sizeInBytes, write
-
Constructor Details
-
NumericTag
protected NumericTag()
-
-
Method Details
-
getAsLong
public abstract long getAsLong() -
getAsInt
public abstract int getAsInt() -
getAsShort
public abstract short getAsShort() -
getAsByte
public abstract byte getAsByte() -
getAsDouble
public abstract double getAsDouble() -
getAsFloat
public abstract float getAsFloat() -
getAsNumber
-
toString
-