Class EntitySubPredicateTypes.DynamicVariantType<V>

java.lang.Object
net.minecraft.predicate.entity.EntitySubPredicateTypes.DynamicVariantType<V>
Enclosing class:
EntitySubPredicateTypes

public static class EntitySubPredicateTypes.DynamicVariantType<V> extends Object
Mappings:
Namespace Name
named net/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType
intermediary net/minecraft/class_7378$class_9419
official by$a
  • Field Details

    • codec

      final com.mojang.serialization.MapCodec<EntitySubPredicateTypes.DynamicVariantType<V>.DynamicPredicate> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_49974 Lnet/minecraft/class_7378$class_9419;field_49974:Lcom/mojang/serialization/MapCodec;
      official a Lby$a;a:Lcom/mojang/serialization/MapCodec;
    • variantGetter

      final Function<Entity,Optional<RegistryEntry<V>>> variantGetter
      Mappings:
      Namespace Name Mixin selector
      named variantGetter Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;variantGetter:Ljava/util/function/Function;
      intermediary field_49975 Lnet/minecraft/class_7378$class_9419;field_49975:Ljava/util/function/Function;
      official b Lby$a;b:Ljava/util/function/Function;
  • Constructor Details

    • DynamicVariantType

      public DynamicVariantType(RegistryKey<? extends Registry<V>> registryRef, Function<Entity,Optional<RegistryEntry<V>>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;<init>(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_7378$class_9419;<init>(Lnet/minecraft/class_5321;Ljava/util/function/Function;)V
      official <init> Lby$a;<init>(Laly;Ljava/util/function/Function;)V
  • Method Details

    • create

      public static <V> EntitySubPredicateTypes.DynamicVariantType<V> create(RegistryKey<? extends Registry<V>> registryRef, Function<Entity,Optional<RegistryEntry<V>>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;create(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Function;)Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;
      intermediary method_58354 Lnet/minecraft/class_7378$class_9419;method_58354(Lnet/minecraft/class_5321;Ljava/util/function/Function;)Lnet/minecraft/class_7378$class_9419;
      official a Lby$a;a(Laly;Ljava/util/function/Function;)Lby$a;
    • createPredicate

      public EntitySubPredicate createPredicate(RegistryEntryList<V> variants)
      Mappings:
      Namespace Name Mixin selector
      named createPredicate Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType;createPredicate(Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/predicate/entity/EntitySubPredicate;
      intermediary method_58356 Lnet/minecraft/class_7378$class_9419;method_58356(Lnet/minecraft/class_6885;)Lnet/minecraft/class_7376;
      official a Lby$a;a(Lju;)Lbx;