Package net.minecraft.nbt
Class CompoundNBT
java.lang.Object
net.minecraft.nbt.CompoundNBT
- All Implemented Interfaces:
INBT
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundNBT>private static final org.apache.logging.log4j.Loggerprivate static final Patternstatic final INBTType<CompoundNBT>Fields 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 TypeMethodDescriptionbooleanbooleancopy()private CrashReportcreateReport(String p_229677_1_, INBTType<?> p_229677_2_, ClassCastException p_229677_3_) entries()booleanbooleangetBoolean(String p_74767_1_) bytebyte[]getByteArray(String p_74770_1_) getCompound(String p_74775_1_) doublefloatbytegetId()intint[]getIntArray(String p_74759_1_) longlong[]getLongArray(String p_197645_1_) getPrettyDisplay(String p_199850_1_, int p_199850_2_) shortbytegetTagType(String p_150299_1_) getType()protected static StringhandleEscape(String p_193582_0_) protected static ITextComponenthandleEscapePretty(String p_197642_0_) inthashCode()booleanbooleanisEmpty()merge(CompoundNBT p_197643_1_) voidputBoolean(String p_74757_1_, boolean p_74757_2_) voidvoidputByteArray(String p_74773_1_, byte[] p_74773_2_) voidvoidvoidvoidputIntArray(String p_74783_1_, int[] p_74783_2_) voidputIntArray(String p_197646_1_, List<Integer> p_197646_2_) voidvoidputLongArray(String p_197644_1_, long[] p_197644_2_) voidputLongArray(String p_202168_1_, List<Long> p_202168_2_) voidvoidvoidprivate static INBTreadNamedTagData(INBTType<?> p_229680_0_, String p_229680_1_, DataInput p_229680_2_, int p_229680_3_, NBTSizeTracker p_229680_4_) private static StringreadNamedTagName(DataInput p_152448_0_, NBTSizeTracker p_152448_1_) private static bytereadNamedTagType(DataInput p_152447_0_, NBTSizeTracker p_152447_1_) voidintsize()toString()voidwrite(DataOutput p_74734_1_) private static voidwriteNamedTag(String p_150298_0_, INBT p_150298_1_, DataOutput p_150298_2_) 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
-
CODEC
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SIMPLE_VALUE
-
TYPE
-
tags
-
-
Constructor Details
-
CompoundNBT
-
CompoundNBT
public CompoundNBT()
-
-
Method Details
-
write
- Specified by:
writein interfaceINBT- Throws:
IOException
-
getAllKeys
-
getId
public byte getId() -
getType
-
size
public int size() -
put
-
putByte
-
putShort
-
putInt
-
putLong
-
putUUID
-
getUUID
-
hasUUID
-
putFloat
-
putDouble
-
putString
-
putByteArray
-
putIntArray
-
putIntArray
-
putLongArray
-
putLongArray
-
putBoolean
-
get
-
getTagType
-
contains
-
contains
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getString
-
getByteArray
-
getIntArray
-
getLongArray
-
getCompound
-
getList
-
getBoolean
-
remove
-
toString
-
isEmpty
public boolean isEmpty() -
createReport
private CrashReport createReport(String p_229677_1_, INBTType<?> p_229677_2_, ClassCastException p_229677_3_) -
copy
-
equals
-
hashCode
public int hashCode() -
writeNamedTag
private static void writeNamedTag(String p_150298_0_, INBT p_150298_1_, DataOutput p_150298_2_) throws IOException - Throws:
IOException
-
readNamedTagType
private static byte readNamedTagType(DataInput p_152447_0_, NBTSizeTracker p_152447_1_) throws IOException - Throws:
IOException
-
readNamedTagName
private static String readNamedTagName(DataInput p_152448_0_, NBTSizeTracker p_152448_1_) throws IOException - Throws:
IOException
-
readNamedTagData
private static INBT readNamedTagData(INBTType<?> p_229680_0_, String p_229680_1_, DataInput p_229680_2_, int p_229680_3_, NBTSizeTracker p_229680_4_) -
merge
-
handleEscape
-
handleEscapePretty
-
getPrettyDisplay
- Specified by:
getPrettyDisplayin interfaceINBT
-
entries
-