Package net.minecraft.predicate.entity
Class EntitySubPredicateTypes.DynamicVariantType<V>
java.lang.Object
net.minecraft.predicate.entity.EntitySubPredicateTypes.DynamicVariantType<V>
- Enclosing class:
EntitySubPredicateTypes
- Mappings:
Namespace Name named net/minecraft/predicate/entity/EntitySubPredicateTypes$DynamicVariantType
intermediary net/minecraft/class_7378$class_9419
official by$a
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
-
Field Summary
Modifier and TypeFieldDescription(package private) final com.mojang.serialization.MapCodec
<EntitySubPredicateTypes.DynamicVariantType<V>.DynamicPredicate> (package private) final Function
<Entity, Optional<RegistryEntry<V>>> -
Constructor Summary
ConstructorDescriptionDynamicVariantType
(RegistryKey<? extends Registry<V>> registryRef, Function<Entity, Optional<RegistryEntry<V>>> variantGetter) -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> EntitySubPredicateTypes.DynamicVariantType
<V> create
(RegistryKey<? extends Registry<V>> registryRef, Function<Entity, Optional<RegistryEntry<V>>> variantGetter) createPredicate
(RegistryEntryList<V> variants)
-
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
- 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
- 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;
-