Package net.minecraft.nbt
Class ByteNBT
java.lang.Object
net.minecraft.nbt.NumberNBT
net.minecraft.nbt.ByteNBT
- All Implemented Interfaces:
INBT
-
Nested Class Summary
-
Field Summary
Fields inherited from interface net.minecraft.nbt.INBT
SYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
byte
double
float
int
getAsInt()
long
short
byte
getId()
getPrettyDisplay
(String p_199850_1_, int p_199850_2_) getType()
int
hashCode()
toString()
static ByteNBT
valueOf
(boolean p_229672_0_) static ByteNBT
valueOf
(byte p_229671_0_) void
write
(DataOutput p_74734_1_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getAsShort
in classNumberNBT
-
getAsByte
public byte getAsByte() -
getAsDouble
public double getAsDouble()- Specified by:
getAsDouble
in classNumberNBT
-
getAsFloat
public float getAsFloat()- Specified by:
getAsFloat
in classNumberNBT
-
getAsNumber
- Specified by:
getAsNumber
in classNumberNBT
-