Package net.minecraft.nbt
Class LongTag
java.lang.Object
net.minecraft.nbt.NumericTag
net.minecraft.nbt.LongTag
- All Implemented Interfaces:
Tag
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private static final int
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionaccept
(StreamTagVisitor p_197504_) void
accept
(TagVisitor p_177998_) copy()
boolean
byte
double
float
int
getAsInt()
long
short
byte
getId()
getType()
int
hashCode()
int
static LongTag
valueOf
(long p_128883_) void
write
(DataOutput p_128885_) Methods inherited from class net.minecraft.nbt.NumericTag
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
Field Details
-
SELF_SIZE_IN_BYTES
private static final int SELF_SIZE_IN_BYTES- See Also:
-
TYPE
-
data
private final long data
-
-
Constructor Details
-
LongTag
LongTag(long p_128877_)
-
-
Method Details
-
valueOf
-
write
- Throws:
IOException
-
sizeInBytes
public int sizeInBytes() -
getId
public byte getId() -
getType
-
copy
-
equals
-
hashCode
public int hashCode() -
accept
-
getAsLong
public long getAsLong()- Specified by:
getAsLong
in classNumericTag
-
getAsInt
public int getAsInt()- Specified by:
getAsInt
in classNumericTag
-
getAsShort
public short getAsShort()- Specified by:
getAsShort
in classNumericTag
-
getAsByte
public byte getAsByte()- Specified by:
getAsByte
in classNumericTag
-
getAsDouble
public double getAsDouble()- Specified by:
getAsDouble
in classNumericTag
-
getAsFloat
public float getAsFloat()- Specified by:
getAsFloat
in classNumericTag
-
getAsNumber
- Specified by:
getAsNumber
in classNumericTag
-
accept
-