Package net.minecraft.nbt
Class ShortTag
java.lang.Object
net.minecraft.nbt.AbstractNumberTag
net.minecraft.nbt.ShortTag
- All Implemented Interfaces:
Tag
public class ShortTag extends AbstractNumberTag
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classShortTag.Cache -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateShortTag(short value) -
Method Summary
Modifier and Type Method Description voidaccept(NbtTagVisitor visitor)ShortTagcopy()booleanequals(Object o)bytegetByte()doublegetDouble()floatgetFloat()intgetInt()longgetLong()NumbergetNumber()TagReader<ShortTag>getReader()shortgetShort()bytegetType()inthashCode()static ShortTagof(short value)voidwrite(DataOutput output)Methods inherited from class net.minecraft.nbt.AbstractNumberTag
toString
-
Field Details
-
READER
-
value
private final short value
-
-
Constructor Details
-
ShortTag
private ShortTag(short value)
-
-
Method Details
-
of
-
write
- Throws:
IOException
-
getType
public byte getType() -
getReader
-
copy
-
equals
-
hashCode
public int hashCode() -
accept
-
getLong
public long getLong()- Specified by:
getLongin classAbstractNumberTag
-
getInt
public int getInt()- Specified by:
getIntin classAbstractNumberTag
-
getShort
public short getShort()- Specified by:
getShortin classAbstractNumberTag
-
getByte
public byte getByte()- Specified by:
getBytein classAbstractNumberTag
-
getDouble
public double getDouble()- Specified by:
getDoublein classAbstractNumberTag
-
getFloat
public float getFloat()- Specified by:
getFloatin classAbstractNumberTag
-
getNumber
- Specified by:
getNumberin classAbstractNumberTag
-