Package net.minecraft.nbt
Class DoubleTag
java.lang.Object
net.minecraft.nbt.NumericTag
net.minecraft.nbt.DoubleTag
- All Implemented Interfaces:
Tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate static final intstatic final DoubleTagFields inherited from interface net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(StreamTagVisitor p_197452_) voidaccept(TagVisitor p_177860_) copy()booleanbytedoublefloatintgetAsInt()longshortbytegetId()getType()inthashCode()static DoubleTagvalueOf(double p_128501_) voidwrite(DataOutput p_128503_) Methods inherited from class net.minecraft.nbt.NumericTag
toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
Field Details
-
SELF_SIZE_IN_BITS
private static final int SELF_SIZE_IN_BITS- See Also:
-
ZERO
-
TYPE
-
data
private final double data
-
-
Constructor Details
-
DoubleTag
private DoubleTag(double p_128498_)
-
-
Method Details
-
valueOf
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
copy
-
equals
-
hashCode
public int hashCode() -
accept
-
getAsLong
public long getAsLong()- Specified by:
getAsLongin classNumericTag
-
getAsInt
public int getAsInt()- Specified by:
getAsIntin classNumericTag
-
getAsShort
public short getAsShort()- Specified by:
getAsShortin classNumericTag
-
getAsByte
public byte getAsByte()- Specified by:
getAsBytein classNumericTag
-
getAsDouble
public double getAsDouble()- Specified by:
getAsDoublein classNumericTag
-
getAsFloat
public float getAsFloat()- Specified by:
getAsFloatin classNumericTag
-
getAsNumber
- Specified by:
getAsNumberin classNumericTag
-
accept
-