Class EntitySubPredicateTypes.VariantType<V>

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

public static class EntitySubPredicateTypes.VariantType<V> extends Object
Mappings:
Namespace Name
named net/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType
intermediary net/minecraft/class_7378$class_7380
official bw$b
  • Field Details

    • codec

      final com.mojang.serialization.MapCodec<EntitySubPredicateTypes.VariantType<V>.VariantPredicate> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_49794 Lnet/minecraft/class_7378$class_7380;field_49794:Lcom/mojang/serialization/MapCodec;
      official a Lbw$b;a:Lcom/mojang/serialization/MapCodec;
    • variantGetter

      final Function<Entity,Optional<V>> variantGetter
      Mappings:
      Namespace Name Mixin selector
      named variantGetter Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;variantGetter:Ljava/util/function/Function;
      intermediary field_38741 Lnet/minecraft/class_7378$class_7380;field_38741:Ljava/util/function/Function;
      official b Lbw$b;b:Ljava/util/function/Function;
  • Constructor Details

    • VariantType

      public VariantType(com.mojang.serialization.Codec<V> variantCodec, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_7378$class_7380;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
      official <init> Lbw$b;<init>(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)V
  • Method Details

    • create

      public static <V> EntitySubPredicateTypes.VariantType<V> create(Registry<V> registry, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;create(Lnet/minecraft/registry/Registry;Ljava/util/function/Function;)Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;
      intermediary method_43116 Lnet/minecraft/class_7378$class_7380;method_43116(Lnet/minecraft/class_2378;Ljava/util/function/Function;)Lnet/minecraft/class_7378$class_7380;
      official a Lbw$b;a(Ljv;Ljava/util/function/Function;)Lbw$b;
    • create

      public static <V> EntitySubPredicateTypes.VariantType<V> create(com.mojang.serialization.Codec<V> codec, Function<Entity,Optional<V>> variantGetter)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;create(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;
      intermediary method_47840 Lnet/minecraft/class_7378$class_7380;method_47840(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lnet/minecraft/class_7378$class_7380;
      official a Lbw$b;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lbw$b;
    • createPredicate

      public EntitySubPredicate createPredicate(V variant)
      Mappings:
      Namespace Name Mixin selector
      named createPredicate Lnet/minecraft/predicate/entity/EntitySubPredicateTypes$VariantType;createPredicate(Ljava/lang/Object;)Lnet/minecraft/predicate/entity/EntitySubPredicate;
      intermediary method_43117 Lnet/minecraft/class_7378$class_7380;method_43117(Ljava/lang/Object;)Lnet/minecraft/class_7376;
      official a Lbw$b;a(Ljava/lang/Object;)Lbv;