Class VariantPredicates<V>

java.lang.Object
net.minecraft.predicate.entity.VariantPredicates<V>

public class VariantPredicates<V> extends Object
Mappings:
Namespace Name
official br
intermediary net/minecraft/class_7380
named net/minecraft/predicate/entity/VariantPredicates
  • Field Details

    • VARIANT_KEY

      private static final String VARIANT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbr;a:Ljava/lang/String;
      intermediary field_38739 Lnet/minecraft/class_7380;field_38739:Ljava/lang/String;
      named VARIANT_KEY Lnet/minecraft/predicate/entity/VariantPredicates;VARIANT_KEY:Ljava/lang/String;
    • registry

      final Registry<V> registry
      Mappings:
      Namespace Name Mixin selector
      official b Lbr;b:Lhm;
      intermediary field_38740 Lnet/minecraft/class_7380;field_38740:Lnet/minecraft/class_2378;
      named registry Lnet/minecraft/predicate/entity/VariantPredicates;registry:Lnet/minecraft/util/registry/Registry;
    • variantGetter

      final Function<Entity,Optional<V>> variantGetter
      Mappings:
      Namespace Name Mixin selector
      official c Lbr;c:Ljava/util/function/Function;
      intermediary field_38741 Lnet/minecraft/class_7380;field_38741:Ljava/util/function/Function;
      named variantGetter Lnet/minecraft/predicate/entity/VariantPredicates;variantGetter:Ljava/util/function/Function;
    • deserializer

      Mappings:
      Namespace Name Mixin selector
      official d Lbr;d:Lbp$a;
      intermediary field_38742 Lnet/minecraft/class_7380;field_38742:Lnet/minecraft/class_7376$class_7377;
      named deserializer Lnet/minecraft/predicate/entity/VariantPredicates;deserializer:Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Deserializer;
  • Constructor Details

    • VariantPredicates

      private VariantPredicates(Registry<V> registry, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbr;<init>(Lhm;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_7380;<init>(Lnet/minecraft/class_2378;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/predicate/entity/VariantPredicates;<init>(Lnet/minecraft/util/registry/Registry;Ljava/util/function/Function;)V
  • Method Details

    • create

      public static <V> VariantPredicates<V> create(Registry<V> registry, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Lbr;a(Lhm;Ljava/util/function/Function;)Lbr;
      intermediary method_43116 Lnet/minecraft/class_7380;method_43116(Lnet/minecraft/class_2378;Ljava/util/function/Function;)Lnet/minecraft/class_7380;
      named create Lnet/minecraft/predicate/entity/VariantPredicates;create(Lnet/minecraft/util/registry/Registry;Ljava/util/function/Function;)Lnet/minecraft/predicate/entity/VariantPredicates;
    • getDeserializer

      public TypeSpecificPredicate.Deserializer getDeserializer()
      Mappings:
      Namespace Name Mixin selector
      official a Lbr;a()Lbp$a;
      intermediary method_43114 Lnet/minecraft/class_7380;method_43114()Lnet/minecraft/class_7376$class_7377;
      named getDeserializer Lnet/minecraft/predicate/entity/VariantPredicates;getDeserializer()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Deserializer;
    • createPredicate

      public TypeSpecificPredicate createPredicate(V variant)
      Mappings:
      Namespace Name Mixin selector
      official a Lbr;a(Ljava/lang/Object;)Lbp;
      intermediary method_43117 Lnet/minecraft/class_7380;method_43117(Ljava/lang/Object;)Lnet/minecraft/class_7376;
      named createPredicate Lnet/minecraft/predicate/entity/VariantPredicates;createPredicate(Ljava/lang/Object;)Lnet/minecraft/predicate/entity/TypeSpecificPredicate;