Class EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic EntityPredicate
private ResourceLocation
private DistancePredicate
private MobEffectsPredicate
private EntityTypePredicate
private EntityEquipmentPredicate
private FishingHookPredicate
private EntityFlagsPredicate
private LighthingBoltPredicate
private LocationPredicate
private NbtPredicate
private EntityPredicate
private PlayerPredicate
private LocationPredicate
private EntityPredicate
private String
private EntityPredicate
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityPredicate(EntityTypePredicate p_150306_, DistancePredicate p_150307_, LocationPredicate p_150308_, LocationPredicate p_150309_, MobEffectsPredicate p_150310_, NbtPredicate p_150311_, EntityFlagsPredicate p_150312_, EntityEquipmentPredicate p_150313_, PlayerPredicate p_150314_, FishingHookPredicate p_150315_, LighthingBoltPredicate p_150316_, String p_150317_, ResourceLocation p_150318_)
(package private)
EntityPredicate(EntityTypePredicate p_150289_, DistancePredicate p_150290_, LocationPredicate p_150291_, LocationPredicate p_150292_, MobEffectsPredicate p_150293_, NbtPredicate p_150294_, EntityFlagsPredicate p_150295_, EntityEquipmentPredicate p_150296_, PlayerPredicate p_150297_, FishingHookPredicate p_150298_, LighthingBoltPredicate p_150299_, EntityPredicate p_150300_, EntityPredicate p_150301_, EntityPredicate p_150302_, String p_150303_, ResourceLocation p_150304_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LootContext
createContext(ServerPlayer p_36617_, Entity p_36618_)
static EntityPredicate
fromJson(com.google.gson.JsonElement p_36615_)
boolean
matches(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_)
boolean
matches(ServerPlayer p_36612_, Entity p_36613_)
com.google.gson.JsonElement
-
Field Details
-
ANY
-
entityType
-
distanceToPlayer
-
location
-
steppingOnLocation
-
effects
-
nbt
-
flags
-
equipment
-
player
-
fishingHook
-
lighthingBolt
-
vehicle
-
passenger
-
targetedEntity
-
team
-
catType
-
-
Constructor Details
-
EntityPredicate
private EntityPredicate(EntityTypePredicate p_150306_, DistancePredicate p_150307_, LocationPredicate p_150308_, LocationPredicate p_150309_, MobEffectsPredicate p_150310_, NbtPredicate p_150311_, EntityFlagsPredicate p_150312_, EntityEquipmentPredicate p_150313_, PlayerPredicate p_150314_, FishingHookPredicate p_150315_, LighthingBoltPredicate p_150316_, @Nullable String p_150317_, @Nullable ResourceLocation p_150318_) -
EntityPredicate
EntityPredicate(EntityTypePredicate p_150289_, DistancePredicate p_150290_, LocationPredicate p_150291_, LocationPredicate p_150292_, MobEffectsPredicate p_150293_, NbtPredicate p_150294_, EntityFlagsPredicate p_150295_, EntityEquipmentPredicate p_150296_, PlayerPredicate p_150297_, FishingHookPredicate p_150298_, LighthingBoltPredicate p_150299_, EntityPredicate p_150300_, EntityPredicate p_150301_, EntityPredicate p_150302_, @Nullable String p_150303_, @Nullable ResourceLocation p_150304_)
-
-
Method Details
-
matches
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
createContext
-