Package net.minecraft.nbt
Class ByteNBT
java.lang.Object
net.minecraft.nbt.NumberNBT
net.minecraft.nbt.ByteNBT
- All Implemented Interfaces:
INBT
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanbytedoublefloatintgetAsInt()longshortbytegetId()getPrettyDisplay(String p_199850_1_, int p_199850_2_) getType()inthashCode()toString()static ByteNBTvalueOf(boolean p_229672_0_) static ByteNBTvalueOf(byte p_229671_0_) voidwrite(DataOutput p_74734_1_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.INBT
getAsString, getPrettyDisplay
-
Field Details
-
TYPE
-
ZERO
-
ONE
-
data
private final byte data
-
-
Constructor Details
-
ByteNBT
private ByteNBT(byte p_i45129_1_)
-
-
Method Details
-
valueOf
-
valueOf
-
write
- Throws:
IOException
-
getId
public byte getId() -
getType
-
toString
-
copy
-
equals
-
hashCode
public int hashCode() -
getPrettyDisplay
-
getAsLong
public long getAsLong() -
getAsInt
public int getAsInt() -
getAsShort
public short getAsShort()- Specified by:
getAsShortin classNumberNBT
-
getAsByte
public byte getAsByte() -
getAsDouble
public double getAsDouble()- Specified by:
getAsDoublein classNumberNBT
-
getAsFloat
public float getAsFloat()- Specified by:
getAsFloatin classNumberNBT
-
getAsNumber
- Specified by:
getAsNumberin classNumberNBT
-