Class EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityPredicate
private final ResourceLocation
private final DistancePredicate
private final MobEffectsPredicate
private final EntityTypePredicate
private final EntityEquipmentPredicate
private final FishingHookPredicate
private final EntityFlagsPredicate
private final LighthingBoltPredicate
private final LocationPredicate
private final NbtPredicate
private final EntityPredicate
private final PlayerPredicate
private final LocationPredicate
private final EntityPredicate
private final String
private final 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
-