Package net.minecraft.nbt
Class NbtHelper
java.lang.Object
net.minecraft.nbt.NbtHelper
- Mappings:
Namespace Name official hkintermediary net/minecraft/class_1946named net/minecraft/nbt/NbtHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NbtCompoundfromBlockPos(BlockPos pos) static NbtCompoundfromGameProfile(NbtCompound nbt, com.mojang.authlib.GameProfile profile) static NbtCompoundstatic booleanmethod_10578(class_4373 class_4373, class_4373 class_43732, boolean bool) static NbtCompoundmethod_20139(BlockState blockState) private static <S extends PropertyContainer<S>,T extends Comparable<T>>
Smethod_20140(S s, Property<T> property, String string, NbtCompound nbtCompound, NbtCompound nbtCompound2) static NbtCompoundmethod_20141(com.mojang.datafixers.DataFixer dataFixer, com.mojang.datafixers.DSL.TypeReference typeReference, NbtCompound nbtCompound, int int2) static NbtCompoundmethod_20142(com.mojang.datafixers.DataFixer dataFixer, com.mojang.datafixers.DSL.TypeReference typeReference, NbtCompound nbtCompound, int int2, int int3) private static <T extends Comparable<T>>
StringnameValue(Property<T> property, Comparable<?> value) static BlockPostoBlockPos(NbtCompound compound) static BlockStatetoBlockState(NbtCompound compound) static com.mojang.authlib.GameProfiletoGameProfile(NbtCompound nbt) static UUIDtoUuid(NbtCompound compound)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLhk;a:Lorg/apache/logging/log4j/Logger;intermediary field_16246Lnet/minecraft/class_1946;field_16246:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/nbt/NbtHelper;LOGGER:Lorg/apache/logging/log4j/Logger;
-
-
Constructor Details
-
NbtHelper
public NbtHelper()
-
-
Method Details
-
toGameProfile
- Mappings:
Namespace Name Mixin selector official aLhk;a(Lgy;)Lcom/mojang/authlib/GameProfile;intermediary method_7367Lnet/minecraft/class_1946;method_7367(Lnet/minecraft/class_322;)Lcom/mojang/authlib/GameProfile;named toGameProfileLnet/minecraft/nbt/NbtHelper;toGameProfile(Lnet/minecraft/nbt/NbtCompound;)Lcom/mojang/authlib/GameProfile;
-
fromGameProfile
- Mappings:
Namespace Name Mixin selector official aLhk;a(Lgy;Lcom/mojang/authlib/GameProfile;)Lgy;intermediary method_10577Lnet/minecraft/class_1946;method_10577(Lnet/minecraft/class_322;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_322;named fromGameProfileLnet/minecraft/nbt/NbtHelper;fromGameProfile(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/nbt/NbtCompound;
-
method_10578
public static boolean method_10578(@Nullable class_4373 class_4373, @Nullable class_4373 class_43732, boolean bool) - Mappings:
Namespace Name Mixin selector official aLhk;a(Lho;Lho;Z)Zintermediary method_10578Lnet/minecraft/class_1946;method_10578(Lnet/minecraft/class_4373;Lnet/minecraft/class_4373;Z)Znamed method_10578Lnet/minecraft/nbt/NbtHelper;method_10578(Lnet/minecraft/class_4373;Lnet/minecraft/class_4373;Z)Z
-
fromUuid
- Mappings:
Namespace Name Mixin selector official aLhk;a(Ljava/util/UUID;)Lgy;intermediary method_12592Lnet/minecraft/class_1946;method_12592(Ljava/util/UUID;)Lnet/minecraft/class_322;named fromUuidLnet/minecraft/nbt/NbtHelper;fromUuid(Ljava/util/UUID;)Lnet/minecraft/nbt/NbtCompound;
-
toUuid
- Mappings:
Namespace Name Mixin selector official bLhk;b(Lgy;)Ljava/util/UUID;intermediary method_12593Lnet/minecraft/class_1946;method_12593(Lnet/minecraft/class_322;)Ljava/util/UUID;named toUuidLnet/minecraft/nbt/NbtHelper;toUuid(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/UUID;
-
toBlockPos
- Mappings:
Namespace Name Mixin selector official cLhk;c(Lgy;)Lel;intermediary method_12594Lnet/minecraft/class_1946;method_12594(Lnet/minecraft/class_322;)Lnet/minecraft/class_2552;named toBlockPosLnet/minecraft/nbt/NbtHelper;toBlockPos(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/util/math/BlockPos;
-
fromBlockPos
- Mappings:
Namespace Name Mixin selector official aLhk;a(Lel;)Lgy;intermediary method_12591Lnet/minecraft/class_1946;method_12591(Lnet/minecraft/class_2552;)Lnet/minecraft/class_322;named fromBlockPosLnet/minecraft/nbt/NbtHelper;fromBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
-
toBlockState
- Mappings:
Namespace Name Mixin selector official dLhk;d(Lgy;)Lblc;intermediary method_13481Lnet/minecraft/class_1946;method_13481(Lnet/minecraft/class_322;)Lnet/minecraft/class_2232;named toBlockStateLnet/minecraft/nbt/NbtHelper;toBlockState(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/BlockState;
-
method_20140
private static <S extends PropertyContainer<S>,T extends Comparable<T>> S method_20140(S s, Property<T> property, String string, NbtCompound nbtCompound, NbtCompound nbtCompound2) - Mappings:
Namespace Name Mixin selector official aLhk;a(Lblf;Lbmm;Ljava/lang/String;Lgy;Lgy;)Lblf;intermediary method_20140Lnet/minecraft/class_1946;method_20140(Lnet/minecraft/class_3759;Lnet/minecraft/class_2247;Ljava/lang/String;Lnet/minecraft/class_322;Lnet/minecraft/class_322;)Lnet/minecraft/class_3759;named method_20140Lnet/minecraft/nbt/NbtHelper;method_20140(Lnet/minecraft/state/PropertyContainer;Lnet/minecraft/state/property/Property;Ljava/lang/String;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/state/PropertyContainer;
-
method_20139
- Mappings:
Namespace Name Mixin selector official aLhk;a(Lblc;)Lgy;intermediary method_20139Lnet/minecraft/class_1946;method_20139(Lnet/minecraft/class_2232;)Lnet/minecraft/class_322;named method_20139Lnet/minecraft/nbt/NbtHelper;method_20139(Lnet/minecraft/block/BlockState;)Lnet/minecraft/nbt/NbtCompound;
-
nameValue
private static <T extends Comparable<T>> String nameValue(Property<T> property, Comparable<?> value) - Mappings:
Namespace Name Mixin selector official aLhk;a(Lbmm;Ljava/lang/Comparable;)Ljava/lang/String;intermediary method_13479Lnet/minecraft/class_1946;method_13479(Lnet/minecraft/class_2247;Ljava/lang/Comparable;)Ljava/lang/String;named nameValueLnet/minecraft/nbt/NbtHelper;nameValue(Lnet/minecraft/state/property/Property;Ljava/lang/Comparable;)Ljava/lang/String;
-
method_20141
public static NbtCompound method_20141(com.mojang.datafixers.DataFixer dataFixer, com.mojang.datafixers.DSL.TypeReference typeReference, NbtCompound nbtCompound, int int2) - Mappings:
Namespace Name Mixin selector official aLhk;a(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lgy;I)Lgy;intermediary method_20141Lnet/minecraft/class_1946;method_20141(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lnet/minecraft/class_322;I)Lnet/minecraft/class_322;named method_20141Lnet/minecraft/nbt/NbtHelper;method_20141(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lnet/minecraft/nbt/NbtCompound;I)Lnet/minecraft/nbt/NbtCompound;
-
method_20142
public static NbtCompound method_20142(com.mojang.datafixers.DataFixer dataFixer, com.mojang.datafixers.DSL.TypeReference typeReference, NbtCompound nbtCompound, int int2, int int3) - Mappings:
Namespace Name Mixin selector official aLhk;a(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lgy;II)Lgy;intermediary method_20142Lnet/minecraft/class_1946;method_20142(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lnet/minecraft/class_322;II)Lnet/minecraft/class_322;named method_20142Lnet/minecraft/nbt/NbtHelper;method_20142(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lnet/minecraft/nbt/NbtCompound;II)Lnet/minecraft/nbt/NbtCompound;
-