Package net.minecraft.nbt
Class CompoundTag
java.lang.Object
net.minecraft.nbt.Tag
net.minecraft.nbt.CompoundTag
public class CompoundTag extends Tag
- Mappings:
Namespace Name official dnintermediary net/minecraft/class_1405named net/minecraft/nbt/CompoundTag
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.nbt.Tag
Tag.NumberTag -
Field Summary
-
Constructor Summary
Constructors Constructor Description CompoundTag() -
Method Summary
Modifier and Type Method Description private CrashReportaddDetailsToCrashReport(String key, int id, ClassCastException ex)booleancontains(String key)booleancontains(String key, int type)Tagcopy()booleanequals(Object other)Tagget(String key)booleangetBoolean(String key)bytegetByte(String key)byte[]getByteArray(String key)CompoundTaggetCompound(String key)doublegetDouble(String key)floatgetFloat(String key)intgetInt(String key)int[]getIntArray(String key)Set<String>getKeys()ListTaggetList(String key, int type)longgetLong(String key)shortgetShort(String key)StringgetString(String key)bytegetType()bytegetType(String key)inthashCode()booleanisEmpty()voidmethod_4995(CompoundTag nbt)voidput(String key, Tag tag)voidputBoolean(String string, boolean bool)voidputByte(String key, byte value)voidputByteArray(String key, byte[] value)voidputDouble(String key, double value)voidputFloat(String key, float value)voidputInt(String key, int value)voidputIntArray(String key, int[] value)voidputLong(String key, long value)voidputShort(String key, short value)voidputString(String key, String value)(package private) voidread(DataInput input, int depth, PositionTracker tracker)private static bytereadByte(DataInput input, PositionTracker tracker)private static StringreadString(DataInput input, PositionTracker tracker)(package private) static TagreadTag(byte type, String name, DataInput input, int int2, PositionTracker positionTracker)voidremove(String key)StringtoString()(package private) voidwrite(DataOutput output)private static voidwrite(String key, Tag tag, DataOutput output)Methods inherited from class net.minecraft.nbt.Tag
asString, createByTypeId
-
Field Details
-
data
- Mappings:
Namespace Name Mixin selector official bLdn;b:Ljava/util/Map;intermediary field_5908Lnet/minecraft/class_1405;field_5908:Ljava/util/Map;named dataLnet/minecraft/nbt/CompoundTag;data:Ljava/util/Map;
-
-
Constructor Details
-
CompoundTag
public CompoundTag()
-
-
Method Details
-
write
- Specified by:
writein classTag- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLeb;a(Ljava/io/DataOutput;)Vintermediary method_5062Lnet/minecraft/class_1419;method_5062(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/Tag;write(Ljava/io/DataOutput;)V
-
read
- Specified by:
readin classTag- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLeb;a(Ljava/io/DataInput;ILdw;)Vintermediary method_5061Lnet/minecraft/class_1419;method_5061(Ljava/io/DataInput;ILnet/minecraft/class_1413;)Vnamed readLnet/minecraft/nbt/Tag;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
-
getKeys
- Mappings:
Namespace Name Mixin selector official cLdn;c()Ljava/util/Set;intermediary method_5015Lnet/minecraft/class_1405;method_5015()Ljava/util/Set;named getKeysLnet/minecraft/nbt/CompoundTag;getKeys()Ljava/util/Set;
-
getType
public byte getType() -
put
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Leb;)Vintermediary method_5004Lnet/minecraft/class_1405;method_5004(Ljava/lang/String;Lnet/minecraft/class_1419;)Vnamed putLnet/minecraft/nbt/CompoundTag;put(Ljava/lang/String;Lnet/minecraft/nbt/Tag;)V
-
putByte
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;B)Vintermediary method_4998Lnet/minecraft/class_1405;method_4998(Ljava/lang/String;B)Vnamed putByteLnet/minecraft/nbt/CompoundTag;putByte(Ljava/lang/String;B)V
-
putShort
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;S)Vintermediary method_5007Lnet/minecraft/class_1405;method_5007(Ljava/lang/String;S)Vnamed putShortLnet/minecraft/nbt/CompoundTag;putShort(Ljava/lang/String;S)V
-
putInt
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;I)Vintermediary method_5001Lnet/minecraft/class_1405;method_5001(Ljava/lang/String;I)Vnamed putIntLnet/minecraft/nbt/CompoundTag;putInt(Ljava/lang/String;I)V
-
putLong
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;J)Vintermediary method_5003Lnet/minecraft/class_1405;method_5003(Ljava/lang/String;J)Vnamed putLongLnet/minecraft/nbt/CompoundTag;putLong(Ljava/lang/String;J)V
-
putFloat
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;F)Vintermediary method_5000Lnet/minecraft/class_1405;method_5000(Ljava/lang/String;F)Vnamed putFloatLnet/minecraft/nbt/CompoundTag;putFloat(Ljava/lang/String;F)V
-
putDouble
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;D)Vintermediary method_4999Lnet/minecraft/class_1405;method_4999(Ljava/lang/String;D)Vnamed putDoubleLnet/minecraft/nbt/CompoundTag;putDouble(Ljava/lang/String;D)V
-
putString
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Ljava/lang/String;)Vintermediary method_5006Lnet/minecraft/class_1405;method_5006(Ljava/lang/String;Ljava/lang/String;)Vnamed putStringLnet/minecraft/nbt/CompoundTag;putString(Ljava/lang/String;Ljava/lang/String;)V
-
putByteArray
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;[B)Vintermediary method_5009Lnet/minecraft/class_1405;method_5009(Ljava/lang/String;[B)Vnamed putByteArrayLnet/minecraft/nbt/CompoundTag;putByteArray(Ljava/lang/String;[B)V
-
putIntArray
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;[I)Vintermediary method_5010Lnet/minecraft/class_1405;method_5010(Ljava/lang/String;[I)Vnamed putIntArrayLnet/minecraft/nbt/CompoundTag;putIntArray(Ljava/lang/String;[I)V
-
putBoolean
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Z)Vintermediary method_5008Lnet/minecraft/class_1405;method_5008(Ljava/lang/String;Z)Vnamed putBooleanLnet/minecraft/nbt/CompoundTag;putBoolean(Ljava/lang/String;Z)V
-
get
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;)Leb;intermediary method_4997Lnet/minecraft/class_1405;method_4997(Ljava/lang/String;)Lnet/minecraft/class_1419;named getLnet/minecraft/nbt/CompoundTag;get(Ljava/lang/String;)Lnet/minecraft/nbt/Tag;
-
getType
- Mappings:
Namespace Name Mixin selector official bLdn;b(Ljava/lang/String;)Bintermediary method_5013Lnet/minecraft/class_1405;method_5013(Ljava/lang/String;)Bnamed getTypeLnet/minecraft/nbt/CompoundTag;getType(Ljava/lang/String;)B
-
contains
- Mappings:
Namespace Name Mixin selector official cLdn;c(Ljava/lang/String;)Zintermediary method_5016Lnet/minecraft/class_1405;method_5016(Ljava/lang/String;)Znamed containsLnet/minecraft/nbt/CompoundTag;contains(Ljava/lang/String;)Z
-
contains
- Mappings:
Namespace Name Mixin selector official bLdn;b(Ljava/lang/String;I)Zintermediary method_5014Lnet/minecraft/class_1405;method_5014(Ljava/lang/String;I)Znamed containsLnet/minecraft/nbt/CompoundTag;contains(Ljava/lang/String;I)Z
-
getByte
- Mappings:
Namespace Name Mixin selector official dLdn;d(Ljava/lang/String;)Bintermediary method_5018Lnet/minecraft/class_1405;method_5018(Ljava/lang/String;)Bnamed getByteLnet/minecraft/nbt/CompoundTag;getByte(Ljava/lang/String;)B
-
getShort
- Mappings:
Namespace Name Mixin selector official eLdn;e(Ljava/lang/String;)Sintermediary method_5019Lnet/minecraft/class_1405;method_5019(Ljava/lang/String;)Snamed getShortLnet/minecraft/nbt/CompoundTag;getShort(Ljava/lang/String;)S
-
getInt
- Mappings:
Namespace Name Mixin selector official fLdn;f(Ljava/lang/String;)Iintermediary method_5020Lnet/minecraft/class_1405;method_5020(Ljava/lang/String;)Inamed getIntLnet/minecraft/nbt/CompoundTag;getInt(Ljava/lang/String;)I
-
getLong
- Mappings:
Namespace Name Mixin selector official gLdn;g(Ljava/lang/String;)Jintermediary method_5021Lnet/minecraft/class_1405;method_5021(Ljava/lang/String;)Jnamed getLongLnet/minecraft/nbt/CompoundTag;getLong(Ljava/lang/String;)J
-
getFloat
- Mappings:
Namespace Name Mixin selector official hLdn;h(Ljava/lang/String;)Fintermediary method_5022Lnet/minecraft/class_1405;method_5022(Ljava/lang/String;)Fnamed getFloatLnet/minecraft/nbt/CompoundTag;getFloat(Ljava/lang/String;)F
-
getDouble
- Mappings:
Namespace Name Mixin selector official iLdn;i(Ljava/lang/String;)Dintermediary method_5023Lnet/minecraft/class_1405;method_5023(Ljava/lang/String;)Dnamed getDoubleLnet/minecraft/nbt/CompoundTag;getDouble(Ljava/lang/String;)D
-
getString
- Mappings:
Namespace Name Mixin selector official jLdn;j(Ljava/lang/String;)Ljava/lang/String;intermediary method_5024Lnet/minecraft/class_1405;method_5024(Ljava/lang/String;)Ljava/lang/String;named getStringLnet/minecraft/nbt/CompoundTag;getString(Ljava/lang/String;)Ljava/lang/String;
-
getByteArray
- Mappings:
Namespace Name Mixin selector official kLdn;k(Ljava/lang/String;)[Bintermediary method_5025Lnet/minecraft/class_1405;method_5025(Ljava/lang/String;)[Bnamed getByteArrayLnet/minecraft/nbt/CompoundTag;getByteArray(Ljava/lang/String;)[B
-
getIntArray
- Mappings:
Namespace Name Mixin selector official lLdn;l(Ljava/lang/String;)[Iintermediary method_5026Lnet/minecraft/class_1405;method_5026(Ljava/lang/String;)[Inamed getIntArrayLnet/minecraft/nbt/CompoundTag;getIntArray(Ljava/lang/String;)[I
-
getCompound
- Mappings:
Namespace Name Mixin selector official mLdn;m(Ljava/lang/String;)Ldn;intermediary method_5027Lnet/minecraft/class_1405;method_5027(Ljava/lang/String;)Lnet/minecraft/class_1405;named getCompoundLnet/minecraft/nbt/CompoundTag;getCompound(Ljava/lang/String;)Lnet/minecraft/nbt/CompoundTag;
-
getList
- Mappings:
Namespace Name Mixin selector official cLdn;c(Ljava/lang/String;I)Ldu;intermediary method_5017Lnet/minecraft/class_1405;method_5017(Ljava/lang/String;I)Lnet/minecraft/class_1411;named getListLnet/minecraft/nbt/CompoundTag;getList(Ljava/lang/String;I)Lnet/minecraft/nbt/ListTag;
-
getBoolean
- Mappings:
Namespace Name Mixin selector official nLdn;n(Ljava/lang/String;)Zintermediary method_5028Lnet/minecraft/class_1405;method_5028(Ljava/lang/String;)Znamed getBooleanLnet/minecraft/nbt/CompoundTag;getBoolean(Ljava/lang/String;)Z
-
remove
- Mappings:
Namespace Name Mixin selector official oLdn;o(Ljava/lang/String;)Vintermediary method_5029Lnet/minecraft/class_1405;method_5029(Ljava/lang/String;)Vnamed removeLnet/minecraft/nbt/CompoundTag;remove(Ljava/lang/String;)V
-
toString
-
isEmpty
public boolean isEmpty() -
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;ILjava/lang/ClassCastException;)Lb;intermediary method_5002Lnet/minecraft/class_1405;method_5002(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/class_825;named addDetailsToCrashReportLnet/minecraft/nbt/CompoundTag;addDetailsToCrashReport(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/util/crash/CrashReport;
-
copy
-
equals
-
hashCode
public int hashCode() -
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Leb;Ljava/io/DataOutput;)Vintermediary method_5005Lnet/minecraft/class_1405;method_5005(Ljava/lang/String;Lnet/minecraft/class_1419;Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/CompoundTag;write(Ljava/lang/String;Lnet/minecraft/nbt/Tag;Ljava/io/DataOutput;)V
-
readByte
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/io/DataInput;Ldw;)Bintermediary method_4996Lnet/minecraft/class_1405;method_4996(Ljava/io/DataInput;Lnet/minecraft/class_1413;)Bnamed readByteLnet/minecraft/nbt/CompoundTag;readByte(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)B
-
readString
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLdn;b(Ljava/io/DataInput;Ldw;)Ljava/lang/String;intermediary method_5012Lnet/minecraft/class_1405;method_5012(Ljava/io/DataInput;Lnet/minecraft/class_1413;)Ljava/lang/String;named readStringLnet/minecraft/nbt/CompoundTag;readString(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)Ljava/lang/String;
-
readTag
static Tag readTag(byte type, String name, DataInput input, int int2, PositionTracker positionTracker) throws IOException- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(BLjava/lang/String;Ljava/io/DataInput;ILdw;)Leb;intermediary method_4994Lnet/minecraft/class_1405;method_4994(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_1413;)Lnet/minecraft/class_1419;named readTagLnet/minecraft/nbt/CompoundTag;readTag(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/Tag;
-
method_4995
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ldn;)Vintermediary method_4995Lnet/minecraft/class_1405;method_4995(Lnet/minecraft/class_1405;)Vnamed method_4995Lnet/minecraft/nbt/CompoundTag;method_4995(Lnet/minecraft/nbt/CompoundTag;)V
-