Package net.minecraft.nbt
Class ShortNBT
- java.lang.Object
-
- net.minecraft.nbt.NumberNBT
-
- net.minecraft.nbt.ShortNBT
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classShortNBT.Cache
-
Field Summary
Fields Modifier and Type Field Description private shortdatastatic INBTType<ShortNBT>TYPE-
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
-
Constructor Summary
Constructors Modifier Constructor Description privateShortNBT(short p_i45135_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortNBTcopy()booleanequals(java.lang.Object p_equals_1_)bytegetAsByte()doublegetAsDouble()floatgetAsFloat()intgetAsInt()longgetAsLong()java.lang.NumbergetAsNumber()shortgetAsShort()bytegetId()ITextComponentgetPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)INBTType<ShortNBT>getType()inthashCode()java.lang.StringtoString()static ShortNBTvalueOf(short p_229701_0_)voidwrite(java.io.DataOutput p_74734_1_)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
-
-
-
Method Detail
-
valueOf
public static ShortNBT valueOf(short p_229701_0_)
-
write
public void write(java.io.DataOutput p_74734_1_) throws java.io.IOException- Throws:
java.io.IOException
-
getId
public byte getId()
-
toString
public java.lang.String toString()
-
copy
public ShortNBT copy()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
getAsShort
public short getAsShort()
- Specified by:
getAsShortin classNumberNBT
-
getAsDouble
public double getAsDouble()
- Specified by:
getAsDoublein classNumberNBT
-
getAsFloat
public float getAsFloat()
- Specified by:
getAsFloatin classNumberNBT
-
getAsNumber
public java.lang.Number getAsNumber()
- Specified by:
getAsNumberin classNumberNBT
-
-