Package net.minecraft.nbt
Class LongTag
java.lang.Object
net.minecraft.nbt.AbstractNumberTag
net.minecraft.nbt.LongTag
- All Implemented Interfaces:
Tag
public class LongTag extends AbstractNumberTag
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LongTag.Cache
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
LongTag(long value)
-
Method Summary
Modifier and Type Method Description LongTag
copy()
boolean
equals(Object o)
byte
getByte()
double
getDouble()
float
getFloat()
int
getInt()
long
getLong()
Number
getNumber()
TagReader<LongTag>
getReader()
short
getShort()
byte
getType()
int
hashCode()
static LongTag
of(long value)
String
toString()
Text
toText(String indent, int depth)
void
write(DataOutput output)
-
Field Details
-
READER
-
value
private final long value
-
-
Constructor Details
-
LongTag
private LongTag(long value)
-
-
Method Details
-
of
-
write
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
toText
-
getLong
public long getLong()- Specified by:
getLong
in classAbstractNumberTag
-
getInt
public int getInt()- Specified by:
getInt
in classAbstractNumberTag
-
getShort
public short getShort()- Specified by:
getShort
in classAbstractNumberTag
-
getByte
public byte getByte()- Specified by:
getByte
in classAbstractNumberTag
-
getDouble
public double getDouble()- Specified by:
getDouble
in classAbstractNumberTag
-
getFloat
public float getFloat()- Specified by:
getFloat
in classAbstractNumberTag
-
getNumber
- Specified by:
getNumber
in classAbstractNumberTag
-