Package net.minecraft.nbt
Class ByteNBT
java.lang.Object
net.minecraft.nbt.NumberNBT
net.minecraft.nbt.ByteNBT
- All Implemented Interfaces:
- INBT
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsFields inherited from interface net.minecraft.nbt.INBTSYNTAX_HIGHLIGHTING_KEY, SYNTAX_HIGHLIGHTING_NUMBER, SYNTAX_HIGHLIGHTING_NUMBER_TYPE, SYNTAX_HIGHLIGHTING_STRING
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.INBTgetAsString, getPrettyDisplay
- 
Field Details- 
TYPE
- 
ZERO
- 
ONE
- 
dataprivate final byte data
 
- 
- 
Constructor Details- 
ByteNBTprivate ByteNBT(byte p_i45129_1_) 
 
- 
- 
Method Details- 
valueOf
- 
valueOf
- 
write- Throws:
- IOException
 
- 
getIdpublic byte getId()
- 
getType
- 
toString
- 
copy
- 
equals
- 
hashCodepublic int hashCode()
- 
getPrettyDisplay
- 
getAsLongpublic long getAsLong()
- 
getAsIntpublic int getAsInt()
- 
getAsShortpublic short getAsShort()- Specified by:
- getAsShortin class- NumberNBT
 
- 
getAsBytepublic byte getAsByte()
- 
getAsDoublepublic double getAsDouble()- Specified by:
- getAsDoublein class- NumberNBT
 
- 
getAsFloatpublic float getAsFloat()- Specified by:
- getAsFloatin class- NumberNBT
 
- 
getAsNumber- Specified by:
- getAsNumberin class- NumberNBT
 
 
-