Package net.minecraft.nbt
Class IntNBT
- java.lang.Object
-
- net.minecraft.nbt.NumberNBT
-
- net.minecraft.nbt.IntNBT
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
IntNBT.Cache
-
Field Summary
Fields Modifier and Type Field Description private int
data
static INBTType<IntNBT>
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
IntNBT(int p_i45133_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntNBT
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<IntNBT>
getType()
int
hashCode()
java.lang.String
toString()
static IntNBT
valueOf(int p_229692_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 IntNBT valueOf(int p_229692_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 IntNBT 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
-
-