net.minecraft.nbt

public class CompoundTag

implements Tag

re
net.minecraft.nbt.CompoundTag
net.minecraft.class_2487
net.minecraft.nbt.NbtCompound
net.minecraft.src.C_4917_
net.minecraft.nbt.NBTTagCompound

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<CompoundTag>
a
CODEC
field_25128
CODEC
f_128325_
private static final int
c
SELF_SIZE_IN_BYTES
field_41718
SIZE
f_263436_
private static final int
w
MAP_ENTRY_SIZE_IN_BYTES
field_41719
field_41719
f_263443_
public static final TagType<CompoundTag>
b
TYPE
field_21029
TYPE
f_128326_
private final Map<String, Tag>
x
tags
field_11515
entries
f_128329_

Constructor summary

ModifierConstructor
protected (Map<String, Tag> entries)
public ()

Method summary

Modifier and TypeMethod
public void
a(DataOutput arg0)
write(DataOutput arg0)
method_10713(DataOutput arg0)
write(DataOutput arg0)
m_6434_(DataOutput arg0)
public int
a()
sizeInBytes()
method_47988()
getSizeInBytes()
m_263179_()
public Set<String>
e()
getAllKeys()
method_10541()
getKeys()
m_128431_()
public byte
b()
getId()
method_10711()
getType()
m_7060_()
public TagType<CompoundTag>
c()
getType()
method_23258()
getNbtType()
m_6458_()
public int
f()
size()
method_10546()
getSize()
m_128440_()
public Tag
a(String arg0, rx arg1)
put(String arg0, Tag arg1)
method_10566(String arg0, class_2520 arg1)
put(String key, NbtElement element)
m_128365_(String p_128367_, C_4950_ arg1)
public void
a(String arg0, byte arg1)
putByte(String arg0, byte arg1)
method_10567(String arg0, byte arg1)
putByte(String key, byte value)
m_128344_(String p_128346_, byte arg1)
public void
a(String arg0, short arg1)
putShort(String arg0, short arg1)
method_10575(String arg0, short arg1)
putShort(String key, short value)
m_128376_(String p_128378_, short arg1)
public void
a(String arg0, int arg1)
putInt(String arg0, int arg1)
method_10569(String arg0, int arg1)
putInt(String key, int value)
m_128405_(String p_128407_, int arg1)
public void
a(String arg0, long arg1)
putLong(String arg0, long arg1)
method_10544(String arg0, long arg1)
putLong(String key, long value)
m_128356_(String p_128358_, long arg1)
public void
a(String arg0, UUID arg1)
putUUID(String arg0, UUID arg1)
method_25927(String arg0, UUID arg1)
putUuid(String key, UUID value)
m_128362_(String p_128364_, UUID arg1)
public UUID
a(String arg0)
getUUID(String arg0)
method_25926(String arg0)
getUuid(String key)
m_128342_(String arg0)
public boolean
b(String arg0)
hasUUID(String arg0)
method_25928(String arg0)
containsUuid(String key)
m_128403_(String arg0)
public void
a(String arg0, float arg1)
putFloat(String arg0, float arg1)
method_10548(String arg0, float arg1)
putFloat(String key, float value)
m_128350_(String p_128352_, float arg1)
public void
a(String arg0, double arg1)
putDouble(String arg0, double arg1)
method_10549(String arg0, double arg1)
putDouble(String key, double value)
m_128347_(String p_128349_, double arg1)
public void
a(String arg0, String arg1)
putString(String arg0, String arg1)
method_10582(String arg0, String arg1)
putString(String key, String value)
m_128359_(String p_128361_, String arg1)
public void
a(String arg0, byte[] arg1)
putByteArray(String arg0, byte[] arg1)
method_10570(String arg0, byte[] arg1)
putByteArray(String key, byte[] value)
m_128382_(String p_128384_, byte[] arg1)
public void
a(String arg0, List<Byte> arg1)
putByteArray(String arg0, List<Byte> arg1)
method_36110(String arg0, List<Byte> arg1)
putByteArray(String key, List<Byte> value)
m_177853_(String p_177855_, List<Byte> arg1)
public void
a(String arg0, int[] arg1)
putIntArray(String arg0, int[] arg1)
method_10539(String arg0, int[] arg1)
putIntArray(String key, int[] value)
m_128385_(String p_128387_, int[] arg1)
public void
b(String arg0, List<Integer> arg1)
putIntArray(String arg0, List<Integer> arg1)
method_10572(String arg0, List<Integer> arg1)
putIntArray(String key, List<Integer> value)
m_128408_(String p_128410_, List<Integer> arg1)
public void
a(String arg0, long[] arg1)
putLongArray(String arg0, long[] arg1)
method_10564(String arg0, long[] arg1)
putLongArray(String key, long[] value)
m_128388_(String p_128390_, long[] arg1)
public void
c(String arg0, List<Long> arg1)
putLongArray(String arg0, List<Long> arg1)
method_10538(String arg0, List<Long> arg1)
putLongArray(String key, List<Long> value)
m_128428_(String p_128430_, List<Long> arg1)
public void
a(String arg0, boolean arg1)
putBoolean(String arg0, boolean arg1)
method_10556(String arg0, boolean arg1)
putBoolean(String key, boolean value)
m_128379_(String p_128381_, boolean arg1)
public Tag
c(String arg0)
get(String arg0)
method_10580(String arg0)
get(String key)
m_128423_(String arg0)
public byte
d(String arg0)
getTagType(String arg0)
method_10540(String arg0)
getType(String key)
m_128435_(String arg0)
public boolean
e(String arg0)
contains(String arg0)
method_10545(String arg0)
contains(String key)
m_128441_(String arg0)
public boolean
b(String arg0, int arg1)
contains(String arg0, int arg1)
method_10573(String arg0, int arg1)
contains(String key, int type)
m_128425_(String p_128427_, int arg1)
public byte
f(String arg0)
getByte(String arg0)
method_10571(String arg0)
getByte(String key)
m_128445_(String arg0)
public short
g(String arg0)
getShort(String arg0)
method_10568(String arg0)
getShort(String key)
m_128448_(String arg0)
public int
h(String arg0)
getInt(String arg0)
method_10550(String arg0)
getInt(String key)
m_128451_(String arg0)
public long
i(String arg0)
getLong(String arg0)
method_10537(String arg0)
getLong(String key)
m_128454_(String arg0)
public float
j(String arg0)
getFloat(String arg0)
method_10583(String arg0)
getFloat(String key)
m_128457_(String arg0)
public double
k(String arg0)
getDouble(String arg0)
method_10574(String arg0)
getDouble(String key)
m_128459_(String arg0)
public String
l(String arg0)
getString(String arg0)
method_10558(String arg0)
getString(String key)
m_128461_(String arg0)
public byte[]
m(String arg0)
getByteArray(String arg0)
method_10547(String arg0)
getByteArray(String key)
m_128463_(String arg0)
public int[]
n(String arg0)
getIntArray(String arg0)
method_10561(String arg0)
getIntArray(String key)
m_128465_(String arg0)
public long[]
o(String arg0)
getLongArray(String arg0)
method_10565(String arg0)
getLongArray(String key)
m_128467_(String arg0)
public CompoundTag
p(String arg0)
getCompound(String arg0)
method_10562(String arg0)
getCompound(String key)
m_128469_(String arg0)
public ListTag
c(String arg0, int arg1)
getList(String arg0, int arg1)
method_10554(String arg0, int arg1)
getList(String key, int type)
m_128437_(String p_128439_, int arg1)
public boolean
q(String arg0)
getBoolean(String arg0)
method_10577(String arg0)
getBoolean(String key)
m_128471_(String arg0)
public void
r(String arg0)
remove(String arg0)
method_10551(String arg0)
remove(String key)
m_128473_(String arg0)
public boolean
g()
isEmpty()
method_33133()
isEmpty()
m_128456_()
private CrashReport
a(String arg0, rz<?> arg1, ClassCastException arg2)
createReport(String arg0, TagType<?> arg1, ClassCastException arg2)
method_10559(String arg0, class_4614<?> arg1, ClassCastException arg2)
createCrashReport(String key, NbtType<?> reader, ClassCastException exception)
m_128372_(String p_128374_, C_4952_<?> p_128375_, ClassCastException arg2)
public CompoundTag
h()
copy()
method_10553()
copy()
m_6426_()
private static void
a(String arg0, rx arg1, DataOutput arg2)
writeNamedTag(String arg0, Tag arg1, DataOutput arg2)
method_10555(String arg0, class_2520 arg1, DataOutput arg2)
write(String key, NbtElement element, DataOutput output)
m_128368_(String p_128369_, C_4950_ p_128370_, DataOutput p_128371_)
static byte
a(DataInput arg0, rn arg1)
readNamedTagType(DataInput arg0, NbtAccounter arg1)
method_10542(DataInput arg0, class_2505 arg1)
readByte(DataInput input, NbtTagSizeTracker tracker)
m_128420_(DataInput p_128421_, C_4937_ p_128422_)
static String
b(DataInput arg0, rn arg1)
readNamedTagName(DataInput arg0, NbtAccounter arg1)
method_10552(DataInput arg0, class_2505 arg1)
readString(DataInput input, NbtTagSizeTracker tracker)
m_128432_(DataInput p_128433_, C_4937_ p_128434_)
static Tag
a(rz<?> arg0, String arg1, DataInput arg2, int arg3, rn arg4)
readNamedTagData(TagType<?> arg0, String arg1, DataInput arg2, int arg3, NbtAccounter arg4)
method_10581(class_4614<?> arg0, String arg1, DataInput arg2, int arg3, class_2505 arg4)
read(NbtType<?> reader, String key, DataInput input, int depth, NbtTagSizeTracker tracker)
m_128413_(C_4952_<?> p_128414_, String p_128415_, DataInput p_128416_, int p_128417_, C_4937_ p_128418_)
public CompoundTag
a(re arg0)
merge(CompoundTag arg0)
method_10543(class_2487 arg0)
copyFrom(NbtCompound source)
m_128391_(C_4917_ arg0)
public void
a(sb arg0)
accept(TagVisitor arg0)
method_32289(class_5627 arg0)
accept(NbtElementVisitor arg0)
m_142327_(C_141838_ arg0)
protected Map<String, Tag>
i()
entries()
method_29143()
toMap()
m_128450_()
public StreamTagVisitor$ValueResult
a(ru arg0)
accept(StreamTagVisitor arg0)
method_39850(class_6836 arg0)
doAccept(NbtScanner arg0)
m_196533_(C_196121_ arg0)