Class EntitySubPredicates
java.lang.Object
net.minecraft.advancements.critereon.EntitySubPredicates
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntitySubPredicates.EntityVariantPredicateType
<Boat.Type> static final com.mojang.serialization.MapCodec
<FishingHookPredicate> static final EntitySubPredicates.EntityVariantPredicateType
<Fox.Type> static final EntitySubPredicates.EntityVariantPredicateType
<Variant> static final com.mojang.serialization.MapCodec
<LightningBoltPredicate> static final EntitySubPredicates.EntityVariantPredicateType
<Llama.Variant> static final EntitySubPredicates.EntityVariantPredicateType
<Parrot.Variant> static final com.mojang.serialization.MapCodec
<PlayerPredicate> static final EntitySubPredicates.EntityVariantPredicateType
<Rabbit.Variant> static final com.mojang.serialization.MapCodec
<RaiderPredicate> static final com.mojang.serialization.MapCodec
<SlimePredicate> static final EntitySubPredicates.EntityVariantPredicateType
<VillagerType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<? extends EntitySubPredicate> bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>> p_333899_) static EntitySubPredicate
catVariant
(Holder<CatVariant> p_335907_) static EntitySubPredicate
frogVariant
(Holder<FrogVariant> p_335714_) private static <T extends EntitySubPredicate>
com.mojang.serialization.MapCodec<T> private static <V> EntitySubPredicates.EntityHolderVariantPredicateType
<V> register
(String p_335408_, EntitySubPredicates.EntityHolderVariantPredicateType<V> p_335914_) private static <V> EntitySubPredicates.EntityVariantPredicateType
<V> register
(String p_333838_, EntitySubPredicates.EntityVariantPredicateType<V> p_334081_) static EntitySubPredicate
wolfVariant
(HolderSet<WolfVariant> p_341342_)
-
Field Details
-
LIGHTNING
-
FISHING_HOOK
-
PLAYER
-
SLIME
-
RAIDER
-
AXOLOTL
-
BOAT
-
FOX
-
MOOSHROOM
public static final EntitySubPredicates.EntityVariantPredicateType<MushroomCow.MushroomType> MOOSHROOM -
RABBIT
-
HORSE
-
LLAMA
-
VILLAGER
-
PARROT
-
TROPICAL_FISH
public static final EntitySubPredicates.EntityVariantPredicateType<TropicalFish.Pattern> TROPICAL_FISH -
PAINTING
-
CAT
-
FROG
-
WOLF
-
-
Constructor Details
-
EntitySubPredicates
public EntitySubPredicates()
-
-
Method Details
-
register
private static <T extends EntitySubPredicate> com.mojang.serialization.MapCodec<T> register(String p_333791_, com.mojang.serialization.MapCodec<T> p_333859_) -
register
private static <V> EntitySubPredicates.EntityVariantPredicateType<V> register(String p_333838_, EntitySubPredicates.EntityVariantPredicateType<V> p_334081_) -
register
private static <V> EntitySubPredicates.EntityHolderVariantPredicateType<V> register(String p_335408_, EntitySubPredicates.EntityHolderVariantPredicateType<V> p_335914_) -
bootstrap
public static com.mojang.serialization.MapCodec<? extends EntitySubPredicate> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>> p_333899_) -
catVariant
-
frogVariant
-
wolfVariant
-