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_335865_) static EntitySubPredicate
catVariant
(Holder<CatVariant> p_331492_) static EntitySubPredicate
frogVariant
(Holder<FrogVariant> p_333799_) private static <T extends EntitySubPredicate>
com.mojang.serialization.MapCodec<T> private static <V> EntitySubPredicates.EntityHolderVariantPredicateType
<V> register
(String p_329374_, EntitySubPredicates.EntityHolderVariantPredicateType<V> p_329883_) private static <V> EntitySubPredicates.EntityVariantPredicateType
<V> register
(String p_330409_, EntitySubPredicates.EntityVariantPredicateType<V> p_330951_) static EntitySubPredicate
wolfVariant
(HolderSet<WolfVariant> p_335349_)
-
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_328480_, com.mojang.serialization.MapCodec<T> p_332441_) -
register
private static <V> EntitySubPredicates.EntityVariantPredicateType<V> register(String p_330409_, EntitySubPredicates.EntityVariantPredicateType<V> p_330951_) -
register
private static <V> EntitySubPredicates.EntityHolderVariantPredicateType<V> register(String p_329374_, EntitySubPredicates.EntityHolderVariantPredicateType<V> p_329883_) -
bootstrap
public static com.mojang.serialization.MapCodec<? extends EntitySubPredicate> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends EntitySubPredicate>> p_335865_) -
catVariant
-
frogVariant
-
wolfVariant
-