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;
    • codec

      final com.mojang.serialization.Codec<V> codec
      Mappings:
      Namespace Name Mixin selector
      official b Lbr;b:Lcom/mojang/serialization/Codec;
      intermediary field_41547 Lnet/minecraft/class_7380;field_41547:Lcom/mojang/serialization/Codec;
      named codec Lnet/minecraft/predicate/entity/VariantPredicates;codec:Lcom/mojang/serialization/Codec;
    • 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(com.mojang.serialization.Codec<V> codec, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbr;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_7380;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/predicate/entity/VariantPredicates;<init>(Lcom/mojang/serialization/Codec;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(Lhr;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/registry/Registry;Ljava/util/function/Function;)Lnet/minecraft/predicate/entity/VariantPredicates;
    • create

      public static <V> VariantPredicates<V> create(com.mojang.serialization.Codec<V> codec, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Lbr;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lbr;
      intermediary method_47840 Lnet/minecraft/class_7380;method_47840(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lnet/minecraft/class_7380;
      named create Lnet/minecraft/predicate/entity/VariantPredicates;create(Lcom/mojang/serialization/Codec;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;