Package net.minecraft.predicate.entity
Class VariantPredicates<V>
java.lang.Object
net.minecraft.predicate.entity.VariantPredicates<V>
- Mappings:
Namespace Name official bo
intermediary net/minecraft/class_7380
named net/minecraft/predicate/entity/VariantPredicates
-
Field Summary
Modifier and TypeFieldDescription(package private) final com.mojang.serialization.Codec<V>
(package private) final TypeSpecificPredicate.Deserializer
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> VariantPredicates<V>
static <V> VariantPredicates<V>
createPredicate
(V variant)
-
Field Details
-
VARIANT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbo;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
- Mappings:
Namespace Name Mixin selector official b
Lbo;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
- Mappings:
Namespace Name Mixin selector official c
Lbo;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
Lbo;d:Lbm$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>
Lbo;<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
Lbo;a(Lhm;Ljava/util/function/Function;)Lbo;
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
Lbo;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lbo;
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
- Mappings:
Namespace Name Mixin selector official a
Lbo;a()Lbm$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
- Mappings:
Namespace Name Mixin selector official a
Lbo;a(Ljava/lang/Object;)Lbm;
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;
-