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 class
ShortNBT.Cache
-
Field Summary
Fields Modifier and Type Field Description private short
data
static 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 private
ShortNBT(short p_i45135_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortNBT
copy()
boolean
equals(java.lang.Object p_equals_1_)
byte
getAsByte()
double
getAsDouble()
float
getAsFloat()
int
getAsInt()
long
getAsLong()
java.lang.Number
getAsNumber()
short
getAsShort()
byte
getId()
ITextComponent
getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
INBTType<ShortNBT>
getType()
int
hashCode()
java.lang.String
toString()
static ShortNBT
valueOf(short p_229701_0_)
void
write(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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getPrettyDisplay
public ITextComponent getPrettyDisplay(java.lang.String p_199850_1_, int p_199850_2_)
-
getAsShort
public short getAsShort()
- Specified by:
getAsShort
in classNumberNBT
-
getAsDouble
public double getAsDouble()
- Specified by:
getAsDouble
in classNumberNBT
-
getAsFloat
public float getAsFloat()
- Specified by:
getAsFloat
in classNumberNBT
-
getAsNumber
public java.lang.Number getAsNumber()
- Specified by:
getAsNumber
in classNumberNBT
-
-