Package net.minecraft.nbt
Class NbtHelper
java.lang.Object
net.minecraft.nbt.NbtHelper
- Mappings:
Namespace Name official eeintermediary net/minecraft/class_1946named net/minecraft/nbt/NbtHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NbtCompoundfromBlockPos(BlockPos pos) static NbtCompoundfromBlockState(NbtCompound compound, BlockState state) static NbtCompoundfromGameProfile(NbtCompound nbt, com.mojang.authlib.GameProfile profile) static NbtCompoundstatic booleanmatches(NbtElement standard, NbtElement subject, boolean equalValue) 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) private static <T extends Comparable<T>>
BlockStatewithProperty(BlockState state, Property<T> property, String key)
-
Constructor Details
-
NbtHelper
public NbtHelper()
-
-
Method Details
-
toGameProfile
- Mappings:
Namespace Name Mixin selector official aLee;a(Ldu;)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 aLee;a(Ldu;Lcom/mojang/authlib/GameProfile;)Ldu;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;
-
matches
- Mappings:
Namespace Name Mixin selector official aLee;a(Lei;Lei;Z)Zintermediary method_10578Lnet/minecraft/class_1946;method_10578(Lnet/minecraft/class_605;Lnet/minecraft/class_605;Z)Znamed matchesLnet/minecraft/nbt/NbtHelper;matches(Lnet/minecraft/nbt/NbtElement;Lnet/minecraft/nbt/NbtElement;Z)Z
-
fromUuid
- Mappings:
Namespace Name Mixin selector official aLee;a(Ljava/util/UUID;)Ldu;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 bLee;b(Ldu;)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 cLee;c(Ldu;)Lco;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 aLee;a(Lco;)Ldu;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 dLee;d(Ldu;)Latl;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;
-
withProperty
private static <T extends Comparable<T>> BlockState withProperty(BlockState state, Property<T> property, String key) - Mappings:
Namespace Name Mixin selector official aLee;a(Latl;Laub;Ljava/lang/String;)Latl;intermediary method_13478Lnet/minecraft/class_1946;method_13478(Lnet/minecraft/class_2232;Lnet/minecraft/class_2247;Ljava/lang/String;)Lnet/minecraft/class_2232;named withPropertyLnet/minecraft/nbt/NbtHelper;withProperty(Lnet/minecraft/block/BlockState;Lnet/minecraft/state/property/Property;Ljava/lang/String;)Lnet/minecraft/block/BlockState;
-
fromBlockState
- Mappings:
Namespace Name Mixin selector official aLee;a(Ldu;Latl;)Ldu;intermediary method_13480Lnet/minecraft/class_1946;method_13480(Lnet/minecraft/class_322;Lnet/minecraft/class_2232;)Lnet/minecraft/class_322;named fromBlockStateLnet/minecraft/nbt/NbtHelper;fromBlockState(Lnet/minecraft/nbt/NbtCompound;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 aLee;a(Laub;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;
-