Class NbtHelper

java.lang.Object
net.minecraft.nbt.NbtHelper

public final class NbtHelper extends Object
Mappings:
Namespace Name
official hk
intermediary net/minecraft/class_1946
named net/minecraft/nbt/NbtHelper
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_16246 Lnet/minecraft/class_1946;field_16246:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/nbt/NbtHelper;LOGGER:Lorg/apache/logging/log4j/Logger;
  • Constructor Details

    • NbtHelper

      public NbtHelper()
  • Method Details

    • toGameProfile

      @Nullable public static com.mojang.authlib.GameProfile toGameProfile(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a(Lgy;)Lcom/mojang/authlib/GameProfile;
      intermediary method_7367 Lnet/minecraft/class_1946;method_7367(Lnet/minecraft/class_322;)Lcom/mojang/authlib/GameProfile;
      named toGameProfile Lnet/minecraft/nbt/NbtHelper;toGameProfile(Lnet/minecraft/nbt/NbtCompound;)Lcom/mojang/authlib/GameProfile;
    • fromGameProfile

      public static NbtCompound fromGameProfile(NbtCompound nbt, com.mojang.authlib.GameProfile profile)
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a(Lgy;Lcom/mojang/authlib/GameProfile;)Lgy;
      intermediary method_10577 Lnet/minecraft/class_1946;method_10577(Lnet/minecraft/class_322;Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_322;
      named fromGameProfile Lnet/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 a Lhk;a(Lho;Lho;Z)Z
      intermediary method_10578 Lnet/minecraft/class_1946;method_10578(Lnet/minecraft/class_4373;Lnet/minecraft/class_4373;Z)Z
      named method_10578 Lnet/minecraft/nbt/NbtHelper;method_10578(Lnet/minecraft/class_4373;Lnet/minecraft/class_4373;Z)Z
    • fromUuid

      public static NbtCompound fromUuid(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a(Ljava/util/UUID;)Lgy;
      intermediary method_12592 Lnet/minecraft/class_1946;method_12592(Ljava/util/UUID;)Lnet/minecraft/class_322;
      named fromUuid Lnet/minecraft/nbt/NbtHelper;fromUuid(Ljava/util/UUID;)Lnet/minecraft/nbt/NbtCompound;
    • toUuid

      public static UUID toUuid(NbtCompound compound)
      Mappings:
      Namespace Name Mixin selector
      official b Lhk;b(Lgy;)Ljava/util/UUID;
      intermediary method_12593 Lnet/minecraft/class_1946;method_12593(Lnet/minecraft/class_322;)Ljava/util/UUID;
      named toUuid Lnet/minecraft/nbt/NbtHelper;toUuid(Lnet/minecraft/nbt/NbtCompound;)Ljava/util/UUID;
    • toBlockPos

      public static BlockPos toBlockPos(NbtCompound compound)
      Mappings:
      Namespace Name Mixin selector
      official c Lhk;c(Lgy;)Lel;
      intermediary method_12594 Lnet/minecraft/class_1946;method_12594(Lnet/minecraft/class_322;)Lnet/minecraft/class_2552;
      named toBlockPos Lnet/minecraft/nbt/NbtHelper;toBlockPos(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/util/math/BlockPos;
    • fromBlockPos

      public static NbtCompound fromBlockPos(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a(Lel;)Lgy;
      intermediary method_12591 Lnet/minecraft/class_1946;method_12591(Lnet/minecraft/class_2552;)Lnet/minecraft/class_322;
      named fromBlockPos Lnet/minecraft/nbt/NbtHelper;fromBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/nbt/NbtCompound;
    • toBlockState

      public static BlockState toBlockState(NbtCompound compound)
      Mappings:
      Namespace Name Mixin selector
      official d Lhk;d(Lgy;)Lblc;
      intermediary method_13481 Lnet/minecraft/class_1946;method_13481(Lnet/minecraft/class_322;)Lnet/minecraft/class_2232;
      named toBlockState Lnet/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 a Lhk;a(Lblf;Lbmm;Ljava/lang/String;Lgy;Lgy;)Lblf;
      intermediary method_20140 Lnet/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_20140 Lnet/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

      public static NbtCompound method_20139(BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lhk;a(Lblc;)Lgy;
      intermediary method_20139 Lnet/minecraft/class_1946;method_20139(Lnet/minecraft/class_2232;)Lnet/minecraft/class_322;
      named method_20139 Lnet/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 a Lhk;a(Lbmm;Ljava/lang/Comparable;)Ljava/lang/String;
      intermediary method_13479 Lnet/minecraft/class_1946;method_13479(Lnet/minecraft/class_2247;Ljava/lang/Comparable;)Ljava/lang/String;
      named nameValue Lnet/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 a Lhk;a(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lgy;I)Lgy;
      intermediary method_20141 Lnet/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_20141 Lnet/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 a Lhk;a(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lgy;II)Lgy;
      intermediary method_20142 Lnet/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_20142 Lnet/minecraft/nbt/NbtHelper;method_20142(Lcom/mojang/datafixers/DataFixer;Lcom/mojang/datafixers/DSL$TypeReference;Lnet/minecraft/nbt/NbtCompound;II)Lnet/minecraft/nbt/NbtCompound;