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