Package net.minecraft.nbt
Class CompoundNBT
java.lang.Object
net.minecraft.nbt.CompoundNBT
- All Implemented Interfaces:
INBT
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CompoundNBT>
private static final org.apache.logging.log4j.Logger
private static final Pattern
static 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
copy()
private CrashReport
createReport
(String p_229677_1_, INBTType<?> p_229677_2_, ClassCastException p_229677_3_) entries()
boolean
boolean
getBoolean
(String p_74767_1_) byte
byte[]
getByteArray
(String p_74770_1_) getCompound
(String p_74775_1_) double
float
byte
getId()
int
int[]
getIntArray
(String p_74759_1_) long
long[]
getLongArray
(String p_197645_1_) getPrettyDisplay
(String p_199850_1_, int p_199850_2_) short
byte
getTagType
(String p_150299_1_) getType()
protected static String
handleEscape
(String p_193582_0_) protected static ITextComponent
handleEscapePretty
(String p_197642_0_) int
hashCode()
boolean
boolean
isEmpty()
merge
(CompoundNBT p_197643_1_) void
putBoolean
(String p_74757_1_, boolean p_74757_2_) void
void
putByteArray
(String p_74773_1_, byte[] p_74773_2_) void
void
void
void
putIntArray
(String p_74783_1_, int[] p_74783_2_) void
putIntArray
(String p_197646_1_, List<Integer> p_197646_2_) void
void
putLongArray
(String p_197644_1_, long[] p_197644_2_) void
putLongArray
(String p_202168_1_, List<Long> p_202168_2_) void
void
void
private static INBT
readNamedTagData
(INBTType<?> p_229680_0_, String p_229680_1_, DataInput p_229680_2_, int p_229680_3_, NBTSizeTracker p_229680_4_) private static String
readNamedTagName
(DataInput p_152448_0_, NBTSizeTracker p_152448_1_) private static byte
readNamedTagType
(DataInput p_152447_0_, NBTSizeTracker p_152447_1_) void
int
size()
toString()
void
write
(DataOutput p_74734_1_) private static void
writeNamedTag
(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, wait
Methods 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:
write
in 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:
getPrettyDisplay
in interfaceINBT
-
entries
-