Class NbtHelper

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

public final class NbtHelper extends Object
Mappings:
Namespace Name
official gj
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 Lgj;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 Lgj;a(Lfy;)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 Lgj;a(Lfy;Lcom/mojang/authlib/GameProfile;)Lfy;
      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;
    • matches

      public static boolean matches(NbtElement standard, NbtElement subject, boolean equalValue)
      Mappings:
      Namespace Name Mixin selector
      official a Lgj;a(Lgn;Lgn;Z)Z
      intermediary method_10578 Lnet/minecraft/class_1946;method_10578(Lnet/minecraft/class_605;Lnet/minecraft/class_605;Z)Z
      named matches Lnet/minecraft/nbt/NbtHelper;matches(Lnet/minecraft/nbt/NbtElement;Lnet/minecraft/nbt/NbtElement;Z)Z
    • fromUuid

      public static NbtCompound fromUuid(UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      official a Lgj;a(Ljava/util/UUID;)Lfy;
      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 Lgj;b(Lfy;)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 Lgj;c(Lfy;)Let;
      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 Lgj;a(Let;)Lfy;
      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 Lgj;d(Lfy;)Lawt;
      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;
    • withProperty

      private static <T extends Comparable<T>> BlockState withProperty(BlockState state, Property<T> property, String key, NbtCompound properties, NbtCompound root)
      Mappings:
      Namespace Name Mixin selector
      official a Lgj;a(Lawt;Laxj;Ljava/lang/String;Lfy;Lfy;)Lawt;
      intermediary method_14753 Lnet/minecraft/class_1946;method_14753(Lnet/minecraft/class_2232;Lnet/minecraft/class_2247;Ljava/lang/String;Lnet/minecraft/class_322;Lnet/minecraft/class_322;)Lnet/minecraft/class_2232;
      named withProperty Lnet/minecraft/nbt/NbtHelper;withProperty(Lnet/minecraft/block/BlockState;Lnet/minecraft/state/property/Property;Ljava/lang/String;Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/block/BlockState;
    • fromBlockState

      public static NbtCompound fromBlockState(NbtCompound compound, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lgj;a(Lfy;Lawt;)Lfy;
      intermediary method_13480 Lnet/minecraft/class_1946;method_13480(Lnet/minecraft/class_322;Lnet/minecraft/class_2232;)Lnet/minecraft/class_322;
      named fromBlockState Lnet/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 a Lgj;a(Laxj;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;