Package net.minecraft.nbt
Class FloatNBT
- java.lang.Object
-
- net.minecraft.nbt.NumberNBT
-
- net.minecraft.nbt.FloatNBT
-
-
Field Summary
Fields Modifier and Type Field Description private float
data
static INBTType<FloatNBT>
TYPE
static FloatNBT
ZERO
-
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
FloatNBT(float p_i45131_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatNBT
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<FloatNBT>
getType()
int
hashCode()
java.lang.String
toString()
static FloatNBT
valueOf(float p_229689_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 FloatNBT valueOf(float p_229689_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 FloatNBT 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
-
-