Package net.minecraft.nbt
Class NbtCompound
java.lang.Object
net.minecraft.nbt.NbtElement
net.minecraft.nbt.NbtCompound
- Mappings:
Namespace Name official drintermediary net/minecraft/class_322named net/minecraft/nbt/NbtCompound
-
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) booleanbooleanbooleancontainsUuid(String key) copy()voidcopyFrom(NbtCompound nbt) booleanbooleangetBoolean(String key) bytebyte[]getByteArray(String key) getCompound(String key) doublefloatintint[]getIntArray(String key) getKeys()longshortintgetSize()bytegetType()byteinthashCode()booleanisEmpty()voidput(String key, NbtElement nbt) voidputBoolean(String key, boolean bool) voidvoidputByteArray(String key, byte[] value) voidvoidvoidvoidputIntArray(String key, int[] value) voidvoidvoidvoid(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 bLdr;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 aLef;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 aLef;a(Ljava/io/DataInput;ILdz;)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 cLdr;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 aLef;a()Bintermediary method_1645Lnet/minecraft/class_605;method_1645()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
getSize
public int getSize()- Mappings:
Namespace Name Mixin selector official dLdr;d()Iintermediary method_12589Lnet/minecraft/class_322;method_12589()Inamed getSizeLnet/minecraft/nbt/NbtCompound;getSize()I
-
put
- Mappings:
Namespace Name Mixin selector official aLdr;a(Ljava/lang/String;Lef;)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 aLdr;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 aLdr;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 aLdr;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 aLdr;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
-
putUuid
- Mappings:
Namespace Name Mixin selector official aLdr;a(Ljava/lang/String;Ljava/util/UUID;)Vintermediary method_12587Lnet/minecraft/class_322;method_12587(Ljava/lang/String;Ljava/util/UUID;)Vnamed putUuidLnet/minecraft/nbt/NbtCompound;putUuid(Ljava/lang/String;Ljava/util/UUID;)V
-
getUuid
- Mappings:
Namespace Name Mixin selector official aLdr;a(Ljava/lang/String;)Ljava/util/UUID;intermediary method_12586Lnet/minecraft/class_322;method_12586(Ljava/lang/String;)Ljava/util/UUID;named getUuidLnet/minecraft/nbt/NbtCompound;getUuid(Ljava/lang/String;)Ljava/util/UUID;
-
containsUuid
- Mappings:
Namespace Name Mixin selector official bLdr;b(Ljava/lang/String;)Zintermediary method_12588Lnet/minecraft/class_322;method_12588(Ljava/lang/String;)Znamed containsUuidLnet/minecraft/nbt/NbtCompound;containsUuid(Ljava/lang/String;)Z
-
putFloat
- Mappings:
Namespace Name Mixin selector official aLdr;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 aLdr;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 aLdr;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 aLdr;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 aLdr;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 aLdr;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 cLdr;c(Ljava/lang/String;)Lef;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 dLdr;d(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 eLdr;e(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 bLdr;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 fLdr;f(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 gLdr;g(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 hLdr;h(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 iLdr;i(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 jLdr;j(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 kLdr;k(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 lLdr;l(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 mLdr;m(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 nLdr;n(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 oLdr;o(Ljava/lang/String;)Ldr;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 cLdr;c(Ljava/lang/String;I)Ldx;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 pLdr;p(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 qLdr;q(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 toStringLef;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_4386Ldr;method_4386()Zintermediary method_4386Lnet/minecraft/class_322;method_4386()Znamed isEmptyLnet/minecraft/nbt/NbtCompound;isEmpty()Z
-
addDetailsToCrashReport
- Mappings:
Namespace Name Mixin selector official aLdr;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 gLdr;g()Ldr;intermediary method_13470Lnet/minecraft/class_322;method_13470()Lnet/minecraft/class_322;named copyLnet/minecraft/nbt/NbtCompound;copy()Lnet/minecraft/nbt/NbtCompound;
-
equals
- Overrides:
equalsin classNbtElement- Mappings:
Namespace Name Mixin selector official equalsLef;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 hashCodeLef;hashCode()Iintermediary hashCodeLnet/minecraft/class_605;hashCode()Inamed hashCodeLnet/minecraft/nbt/NbtElement;hashCode()I
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdr;a(Ljava/lang/String;Lef;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 aLdr;a(Ljava/io/DataInput;Ldz;)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 bLdr;b(Ljava/io/DataInput;Ldz;)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 aLdr;a(BLjava/lang/String;Ljava/io/DataInput;ILdz;)Lef;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 aLdr;a(Ldr;)Vintermediary method_10575Lnet/minecraft/class_322;method_10575(Lnet/minecraft/class_322;)Vnamed copyFromLnet/minecraft/nbt/NbtCompound;copyFrom(Lnet/minecraft/nbt/NbtCompound;)V
-