Class Variants

java.lang.Object
net.minecraft.entity.Variants

public class Variants extends Object
Mappings:
Namespace Name
named net/minecraft/entity/Variants
intermediary net/minecraft/class_10704
official cur
  • Field Details

    • VARIANT_NBT_KEY

      public static final String VARIANT_NBT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named VARIANT_NBT_KEY Lnet/minecraft/entity/Variants;VARIANT_NBT_KEY:Ljava/lang/String;
      intermediary field_56288 Lnet/minecraft/class_10704;field_56288:Ljava/lang/String;
      official a Lcur;a:Ljava/lang/String;
  • Constructor Details

    • Variants

      public Variants()
  • Method Details

    • getOrDefaultOrThrow

      public static <T> RegistryEntry<T> getOrDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<T> variantKey)
      Mappings:
      Namespace Name Mixin selector
      named getOrDefaultOrThrow Lnet/minecraft/entity/Variants;getOrDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_67175 Lnet/minecraft/class_10704;method_67175(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;
      official a Lcur;a(Lju;Lalq;)Ljg;
    • getDefaultOrThrow

      public static <T> RegistryEntry<T> getDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named getDefaultOrThrow Lnet/minecraft/entity/Variants;getDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_67179 Lnet/minecraft/class_10704;method_67179(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;
      official b Lcur;b(Lju;Lalq;)Ljg;
    • writeVariantToNbt

      public static <T> void writeVariantToNbt(NbtCompound nbt, RegistryEntry<T> variantEntry)
      Mappings:
      Namespace Name Mixin selector
      named writeVariantToNbt Lnet/minecraft/entity/Variants;writeVariantToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/entry/RegistryEntry;)V
      intermediary method_67177 Lnet/minecraft/class_10704;method_67177(Lnet/minecraft/class_2487;Lnet/minecraft/class_6880;)V
      official a Lcur;a(Lua;Ljg;)V
    • readVariantFromNbt

      public static <T> Optional<RegistryEntry<T>> readVariantFromNbt(NbtCompound nbt, DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef)
      Mappings:
      Namespace Name Mixin selector
      named readVariantFromNbt Lnet/minecraft/entity/Variants;readVariantFromNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
      intermediary method_67178 Lnet/minecraft/class_10704;method_67178(Lnet/minecraft/class_2487;Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Ljava/util/Optional;
      official a Lcur;a(Lua;Lju;Lalq;)Ljava/util/Optional;