Package net.minecraft.nbt
Class NbtCompound
java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.NbtCompound
- Mappings:
Namespace Name official dnintermediary net/minecraft/class_322named net/minecraft/nbt/NbtCompound
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.nbt.NbtElement
NbtElement.AbstractNbtNumber -
Field Summary
FieldsFields inherited from class net.minecraft.nbt.NbtElement
TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CrashReportaddDetailsToCrashReport(String key, int id, ClassCastException ex) booleanbooleancopy()voidcopyFrom(NbtCompound nbt) booleanbooleangetBoolean(String key) bytebyte[]getByteArray(String key) getCompound(String key) doublefloatintint[]getIntArray(String key) getKeys()longshortbytegetType()byteinthashCode()booleanisEmpty()voidput(String key, NbtElement nbt) voidputBoolean(String key, boolean bool) voidvoidputByteArray(String key, byte[] value) voidvoidvoidvoidputIntArray(String key, int[] value) voidvoidvoid(package private) voidread(DataInput input, int depth, PositionTracker tracker) private static bytereadByte(DataInput input, PositionTracker tracker) (package private) static NbtElementreadNbt(byte type, String name, DataInput input, int depth, PositionTracker tracker) private static StringreadString(DataInput input, PositionTracker tracker) voidtoString()(package private) voidwrite(DataOutput output) private static voidwrite(String key, NbtElement nbt, DataOutput output) Methods inherited from class net.minecraft.nbt.NbtElement
asString, createFromType
-
Field Details
-
data
- Mappings:
Namespace Name Mixin selector official bLdn;b:Ljava/util/Map;intermediary field_899Lnet/minecraft/class_322;field_899:Ljava/util/Map;named dataLnet/minecraft/nbt/NbtCompound;data:Ljava/util/Map;
-
-
Constructor Details
-
NbtCompound
public NbtCompound()
-
-
Method Details
-
write
- Specified by:
writein classNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLeb;a(Ljava/io/DataOutput;)Vintermediary method_1650Lnet/minecraft/class_605;method_1650(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
read
- Specified by:
readin classNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLeb;a(Ljava/io/DataInput;ILdw;)Vintermediary method_1649Lnet/minecraft/class_605;method_1649(Ljava/io/DataInput;ILnet/minecraft/class_1944;)Vnamed readLnet/minecraft/nbt/NbtElement;read(Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)V
-
getKeys
- Mappings:
Namespace Name Mixin selector official cLdn;c()Ljava/util/Set;intermediary method_7347Lnet/minecraft/class_322;method_7347()Ljava/util/Set;named getKeysLnet/minecraft/nbt/NbtCompound;getKeys()Ljava/util/Set;
-
getType
public byte getType()- Specified by:
getTypein classNbtElement- Mappings:
Namespace Name Mixin selector official aLeb;a()Bintermediary method_1645Lnet/minecraft/class_605;method_1645()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
put
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Leb;)Vintermediary method_814Lnet/minecraft/class_322;method_814(Ljava/lang/String;Lnet/minecraft/class_605;)Vnamed putLnet/minecraft/nbt/NbtCompound;put(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;)V
-
putByte
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;B)Vintermediary method_808Lnet/minecraft/class_322;method_808(Ljava/lang/String;B)Vnamed putByteLnet/minecraft/nbt/NbtCompound;putByte(Ljava/lang/String;B)V
-
putShort
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;S)Vintermediary method_816Lnet/minecraft/class_322;method_816(Ljava/lang/String;S)Vnamed putShortLnet/minecraft/nbt/NbtCompound;putShort(Ljava/lang/String;S)V
-
putInt
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;I)Vintermediary method_811Lnet/minecraft/class_322;method_811(Ljava/lang/String;I)Vnamed putIntLnet/minecraft/nbt/NbtCompound;putInt(Ljava/lang/String;I)V
-
putLong
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;J)Vintermediary method_812Lnet/minecraft/class_322;method_812(Ljava/lang/String;J)Vnamed putLongLnet/minecraft/nbt/NbtCompound;putLong(Ljava/lang/String;J)V
-
putFloat
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;F)Vintermediary method_810Lnet/minecraft/class_322;method_810(Ljava/lang/String;F)Vnamed putFloatLnet/minecraft/nbt/NbtCompound;putFloat(Ljava/lang/String;F)V
-
putDouble
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;D)Vintermediary method_809Lnet/minecraft/class_322;method_809(Ljava/lang/String;D)Vnamed putDoubleLnet/minecraft/nbt/NbtCompound;putDouble(Ljava/lang/String;D)V
-
putString
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Ljava/lang/String;)Vintermediary method_815Lnet/minecraft/class_322;method_815(Ljava/lang/String;Ljava/lang/String;)Vnamed putStringLnet/minecraft/nbt/NbtCompound;putString(Ljava/lang/String;Ljava/lang/String;)V
-
putByteArray
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;[B)Vintermediary method_818Lnet/minecraft/class_322;method_818(Ljava/lang/String;[B)Vnamed putByteArrayLnet/minecraft/nbt/NbtCompound;putByteArray(Ljava/lang/String;[B)V
-
putIntArray
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;[I)Vintermediary method_819Lnet/minecraft/class_322;method_819(Ljava/lang/String;[I)Vnamed putIntArrayLnet/minecraft/nbt/NbtCompound;putIntArray(Ljava/lang/String;[I)V
-
putBoolean
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Z)Vintermediary method_817Lnet/minecraft/class_322;method_817(Ljava/lang/String;Z)Vnamed putBooleanLnet/minecraft/nbt/NbtCompound;putBoolean(Ljava/lang/String;Z)V
-
get
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;)Leb;intermediary method_807Lnet/minecraft/class_322;method_807(Ljava/lang/String;)Lnet/minecraft/class_605;named getLnet/minecraft/nbt/NbtCompound;get(Ljava/lang/String;)Lnet/minecraft/nbt/NbtElement;
-
getType
- Mappings:
Namespace Name Mixin selector official bLdn;b(Ljava/lang/String;)Bintermediary method_7345Lnet/minecraft/class_322;method_7345(Ljava/lang/String;)Bnamed getTypeLnet/minecraft/nbt/NbtCompound;getType(Ljava/lang/String;)B
-
contains
- Mappings:
Namespace Name Mixin selector official cLdn;c(Ljava/lang/String;)Zintermediary method_820Lnet/minecraft/class_322;method_820(Ljava/lang/String;)Znamed containsLnet/minecraft/nbt/NbtCompound;contains(Ljava/lang/String;)Z
-
contains
- Mappings:
Namespace Name Mixin selector official bLdn;b(Ljava/lang/String;I)Zintermediary method_7346Lnet/minecraft/class_322;method_7346(Ljava/lang/String;I)Znamed containsLnet/minecraft/nbt/NbtCompound;contains(Ljava/lang/String;I)Z
-
getByte
- Mappings:
Namespace Name Mixin selector official dLdn;d(Ljava/lang/String;)Bintermediary method_822Lnet/minecraft/class_322;method_822(Ljava/lang/String;)Bnamed getByteLnet/minecraft/nbt/NbtCompound;getByte(Ljava/lang/String;)B
-
getShort
- Mappings:
Namespace Name Mixin selector official eLdn;e(Ljava/lang/String;)Sintermediary method_823Lnet/minecraft/class_322;method_823(Ljava/lang/String;)Snamed getShortLnet/minecraft/nbt/NbtCompound;getShort(Ljava/lang/String;)S
-
getInt
- Mappings:
Namespace Name Mixin selector official fLdn;f(Ljava/lang/String;)Iintermediary method_824Lnet/minecraft/class_322;method_824(Ljava/lang/String;)Inamed getIntLnet/minecraft/nbt/NbtCompound;getInt(Ljava/lang/String;)I
-
getLong
- Mappings:
Namespace Name Mixin selector official gLdn;g(Ljava/lang/String;)Jintermediary method_825Lnet/minecraft/class_322;method_825(Ljava/lang/String;)Jnamed getLongLnet/minecraft/nbt/NbtCompound;getLong(Ljava/lang/String;)J
-
getFloat
- Mappings:
Namespace Name Mixin selector official hLdn;h(Ljava/lang/String;)Fintermediary method_826Lnet/minecraft/class_322;method_826(Ljava/lang/String;)Fnamed getFloatLnet/minecraft/nbt/NbtCompound;getFloat(Ljava/lang/String;)F
-
getDouble
- Mappings:
Namespace Name Mixin selector official iLdn;i(Ljava/lang/String;)Dintermediary method_827Lnet/minecraft/class_322;method_827(Ljava/lang/String;)Dnamed getDoubleLnet/minecraft/nbt/NbtCompound;getDouble(Ljava/lang/String;)D
-
getString
- Mappings:
Namespace Name Mixin selector official jLdn;j(Ljava/lang/String;)Ljava/lang/String;intermediary method_828Lnet/minecraft/class_322;method_828(Ljava/lang/String;)Ljava/lang/String;named getStringLnet/minecraft/nbt/NbtCompound;getString(Ljava/lang/String;)Ljava/lang/String;
-
getByteArray
- Mappings:
Namespace Name Mixin selector official kLdn;k(Ljava/lang/String;)[Bintermediary method_829Lnet/minecraft/class_322;method_829(Ljava/lang/String;)[Bnamed getByteArrayLnet/minecraft/nbt/NbtCompound;getByteArray(Ljava/lang/String;)[B
-
getIntArray
- Mappings:
Namespace Name Mixin selector official lLdn;l(Ljava/lang/String;)[Iintermediary method_830Lnet/minecraft/class_322;method_830(Ljava/lang/String;)[Inamed getIntArrayLnet/minecraft/nbt/NbtCompound;getIntArray(Ljava/lang/String;)[I
-
getCompound
- Mappings:
Namespace Name Mixin selector official mLdn;m(Ljava/lang/String;)Ldn;intermediary method_831Lnet/minecraft/class_322;method_831(Ljava/lang/String;)Lnet/minecraft/class_322;named getCompoundLnet/minecraft/nbt/NbtCompound;getCompound(Ljava/lang/String;)Lnet/minecraft/nbt/NbtCompound;
-
getList
- Mappings:
Namespace Name Mixin selector official cLdn;c(Ljava/lang/String;I)Ldu;intermediary method_7348Lnet/minecraft/class_322;method_7348(Ljava/lang/String;I)Lnet/minecraft/class_474;named getListLnet/minecraft/nbt/NbtCompound;getList(Ljava/lang/String;I)Lnet/minecraft/nbt/NbtList;
-
getBoolean
- Mappings:
Namespace Name Mixin selector official nLdn;n(Ljava/lang/String;)Zintermediary method_833Lnet/minecraft/class_322;method_833(Ljava/lang/String;)Znamed getBooleanLnet/minecraft/nbt/NbtCompound;getBoolean(Ljava/lang/String;)Z
-
remove
- Mappings:
Namespace Name Mixin selector official oLdn;o(Ljava/lang/String;)Vintermediary method_4387Lnet/minecraft/class_322;method_4387(Ljava/lang/String;)Vnamed removeLnet/minecraft/nbt/NbtCompound;remove(Ljava/lang/String;)V
-
toString
- Specified by:
toStringin classNbtElement- Mappings:
Namespace Name Mixin selector official toStringLeb;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_605;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
-
isEmpty
public boolean isEmpty()- Overrides:
isEmptyin classNbtElement- Mappings:
Namespace Name Mixin selector official method_4386Ldn;method_4386()Zintermediary method_4386Lnet/minecraft/class_322;method_4386()Znamed isEmptyLnet/minecraft/nbt/NbtCompound;isEmpty()Z
-
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;ILjava/lang/ClassCastException;)Lb;intermediary method_4385Lnet/minecraft/class_322;method_4385(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/class_1;named addDetailsToCrashReportLnet/minecraft/nbt/NbtCompound;addDetailsToCrashReport(Ljava/lang/String;ILjava/lang/ClassCastException;)Lnet/minecraft/util/crash/CrashReport;
-
copy
- Specified by:
copyin classNbtElement- Mappings:
Namespace Name Mixin selector official bLeb;b()Leb;intermediary method_1651Lnet/minecraft/class_605;method_1651()Lnet/minecraft/class_605;named copyLnet/minecraft/nbt/NbtElement;copy()Lnet/minecraft/nbt/NbtElement;
-
equals
- Overrides:
equalsin classNbtElement- Mappings:
Namespace Name Mixin selector official equalsLeb;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_605;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/nbt/NbtElement;equals(Ljava/lang/Object;)Z
-
hashCode
public int hashCode()- Overrides:
hashCodein classNbtElement- Mappings:
Namespace Name Mixin selector official hashCodeLeb;hashCode()Iintermediary hashCodeLnet/minecraft/class_605;hashCode()Inamed hashCodeLnet/minecraft/nbt/NbtElement;hashCode()I
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/lang/String;Leb;Ljava/io/DataOutput;)Vintermediary method_7343Lnet/minecraft/class_322;method_7343(Ljava/lang/String;Lnet/minecraft/class_605;Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtCompound;write(Ljava/lang/String;Lnet/minecraft/nbt/NbtElement;Ljava/io/DataOutput;)V
-
readByte
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(Ljava/io/DataInput;Ldw;)Bintermediary method_7342Lnet/minecraft/class_322;method_7342(Ljava/io/DataInput;Lnet/minecraft/class_1944;)Bnamed readByteLnet/minecraft/nbt/NbtCompound;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_7344Lnet/minecraft/class_322;method_7344(Ljava/io/DataInput;Lnet/minecraft/class_1944;)Ljava/lang/String;named readStringLnet/minecraft/nbt/NbtCompound;readString(Ljava/io/DataInput;Lnet/minecraft/nbt/PositionTracker;)Ljava/lang/String;
-
readNbt
static NbtElement readNbt(byte type, String name, DataInput input, int depth, PositionTracker tracker) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdn;a(BLjava/lang/String;Ljava/io/DataInput;ILdw;)Leb;intermediary method_7341Lnet/minecraft/class_322;method_7341(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/class_1944;)Lnet/minecraft/class_605;named readNbtLnet/minecraft/nbt/NbtCompound;readNbt(BLjava/lang/String;Ljava/io/DataInput;ILnet/minecraft/nbt/PositionTracker;)Lnet/minecraft/nbt/NbtElement;
-
copyFrom
- Mappings:
Namespace Name Mixin selector official aLdn;a(Ldn;)Vintermediary method_10575Lnet/minecraft/class_322;method_10575(Lnet/minecraft/class_322;)Vnamed copyFromLnet/minecraft/nbt/NbtCompound;copyFrom(Lnet/minecraft/nbt/NbtCompound;)V
-