net.minecraft.nbt

public class CompoundTag

implements Tag

tq
net.minecraft.nbt.CompoundTag
net.minecraft.class_2487
net.minecraft.nbt.NbtCompound
net.minecraft.nbt.NBTTagCompound

Field summary

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

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)
public int
a()
sizeInBytes()
method_47988()
getSizeInBytes()
public Set<String>
e()
getAllKeys()
method_10541()
getKeys()
public byte
b()
getId()
method_10711()
getType()
public TagType<CompoundTag>
c()
getType()
method_23258()
getNbtType()
public int
f()
size()
method_10546()
getSize()
public Tag
a(String arg0, un arg1)
put(String arg0, Tag arg1)
method_10566(String arg0, class_2520 arg1)
put(String key, NbtElement element)
public void
a(String arg0, byte arg1)
putByte(String arg0, byte arg1)
method_10567(String arg0, byte arg1)
putByte(String key, byte value)
public void
a(String arg0, short arg1)
putShort(String arg0, short arg1)
method_10575(String arg0, short arg1)
putShort(String key, short value)
public void
a(String arg0, int arg1)
putInt(String arg0, int arg1)
method_10569(String arg0, int arg1)
putInt(String key, int value)
public void
a(String arg0, long arg1)
putLong(String arg0, long arg1)
method_10544(String arg0, long arg1)
putLong(String key, long value)
public void
a(String arg0, UUID arg1)
putUUID(String arg0, UUID arg1)
method_25927(String arg0, UUID arg1)
putUuid(String key, UUID value)
public UUID
a(String arg0)
getUUID(String arg0)
method_25926(String arg0)
getUuid(String key)
public boolean
b(String arg0)
hasUUID(String arg0)
method_25928(String arg0)
containsUuid(String key)
public void
a(String arg0, float arg1)
putFloat(String arg0, float arg1)
method_10548(String arg0, float arg1)
putFloat(String key, float value)
public void
a(String arg0, double arg1)
putDouble(String arg0, double arg1)
method_10549(String arg0, double arg1)
putDouble(String key, double value)
public void
a(String arg0, String arg1)
putString(String arg0, String arg1)
method_10582(String arg0, String arg1)
putString(String key, String value)
public void
a(String arg0, byte[] arg1)
putByteArray(String arg0, byte[] arg1)
method_10570(String arg0, byte[] arg1)
putByteArray(String key, byte[] value)
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)
public void
a(String arg0, int[] arg1)
putIntArray(String arg0, int[] arg1)
method_10539(String arg0, int[] arg1)
putIntArray(String key, int[] value)
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)
public void
a(String arg0, long[] arg1)
putLongArray(String arg0, long[] arg1)
method_10564(String arg0, long[] arg1)
putLongArray(String key, long[] value)
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)
public void
a(String arg0, boolean arg1)
putBoolean(String arg0, boolean arg1)
method_10556(String arg0, boolean arg1)
putBoolean(String key, boolean value)
public Tag
c(String arg0)
get(String arg0)
method_10580(String arg0)
get(String key)
public byte
d(String arg0)
getTagType(String arg0)
method_10540(String arg0)
getType(String key)
public boolean
e(String arg0)
contains(String arg0)
method_10545(String arg0)
contains(String key)
public boolean
b(String arg0, int arg1)
contains(String arg0, int arg1)
method_10573(String arg0, int arg1)
contains(String key, int type)
public byte
f(String arg0)
getByte(String arg0)
method_10571(String arg0)
getByte(String key)
public short
g(String arg0)
getShort(String arg0)
method_10568(String arg0)
getShort(String key)
public int
h(String arg0)
getInt(String arg0)
method_10550(String arg0)
getInt(String key)
public long
i(String arg0)
getLong(String arg0)
method_10537(String arg0)
getLong(String key)
public float
j(String arg0)
getFloat(String arg0)
method_10583(String arg0)
getFloat(String key)
public double
k(String arg0)
getDouble(String arg0)
method_10574(String arg0)
getDouble(String key)
public String
l(String arg0)
getString(String arg0)
method_10558(String arg0)
getString(String key)
public byte[]
m(String arg0)
getByteArray(String arg0)
method_10547(String arg0)
getByteArray(String key)
public int[]
n(String arg0)
getIntArray(String arg0)
method_10561(String arg0)
getIntArray(String key)
public long[]
o(String arg0)
getLongArray(String arg0)
method_10565(String arg0)
getLongArray(String key)
public CompoundTag
p(String arg0)
getCompound(String arg0)
method_10562(String arg0)
getCompound(String key)
public ListTag
c(String arg0, int arg1)
getList(String arg0, int arg1)
method_10554(String arg0, int arg1)
getList(String key, int type)
public boolean
q(String arg0)
getBoolean(String arg0)
method_10577(String arg0)
getBoolean(String key)
public void
r(String arg0)
remove(String arg0)
method_10551(String arg0)
remove(String key)
public boolean
g()
isEmpty()
method_33133()
isEmpty()
private CrashReport
a(String arg0, up<?> 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)
protected CompoundTag
h()
shallowCopy()
method_59873()
shallowCopy()
public CompoundTag
i()
copy()
method_10553()
copy()
private static void
a(String arg0, un 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)
static Tag
a(up<?> arg0, String arg1, DataInput arg2, tz arg3)
readNamedTagData(TagType<?> arg0, String arg1, DataInput arg2, NbtAccounter arg3)
method_10581(class_4614<?> arg0, String arg1, DataInput arg2, class_2505 arg3)
read(NbtType<?> reader, String key, DataInput input, NbtSizeTracker tracker)
public CompoundTag
a(tq arg0)
merge(CompoundTag arg0)
method_10543(class_2487 arg0)
copyFrom(NbtCompound source)
public void
a(ur arg0)
accept(TagVisitor arg0)
method_32289(class_5627 arg0)
accept(NbtElementVisitor arg0)
protected Set<Map$Entry<String, Tag>>
j()
entrySet()
method_59874()
entrySet()
public StreamTagVisitor$ValueResult
a(uk arg0)
accept(StreamTagVisitor arg0)
method_39850(class_6836 arg0)
doAccept(NbtScanner arg0)