Class EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final EntityPredicate
private final DistancePredicate
private final MobEffectsPredicate
private final EntityTypePredicate
private final EntityEquipmentPredicate
private final EntityFlagsPredicate
private final LocationPredicate
private final NbtPredicate
private final EntityPredicate
private final LocationPredicate
private final EntitySubPredicate
private final EntityPredicate
private final String
private final EntityPredicate
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityPredicate
(EntityTypePredicate p_218789_, DistancePredicate p_218790_, LocationPredicate p_218791_, LocationPredicate p_218792_, MobEffectsPredicate p_218793_, NbtPredicate p_218794_, EntityFlagsPredicate p_218795_, EntityEquipmentPredicate p_218796_, EntitySubPredicate p_218797_, String p_218798_) (package private)
EntityPredicate
(EntityTypePredicate p_218775_, DistancePredicate p_218776_, LocationPredicate p_218777_, LocationPredicate p_218778_, MobEffectsPredicate p_218779_, NbtPredicate p_218780_, EntityFlagsPredicate p_218781_, EntityEquipmentPredicate p_218782_, EntitySubPredicate p_218783_, EntityPredicate p_218784_, EntityPredicate p_218785_, EntityPredicate p_218786_, String p_218787_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootContext
createContext
(ServerPlayer p_36617_, Entity p_36618_) private static ContextAwarePredicate
fromElement
(String p_286569_, DeserializationContext p_286821_, com.google.gson.JsonElement p_286582_) static EntityPredicate
fromJson
(com.google.gson.JsonElement p_36615_) static ContextAwarePredicate
fromJson
(com.google.gson.JsonObject p_286877_, String p_286245_, DeserializationContext p_286427_) static ContextAwarePredicate[]
fromJsonArray
(com.google.gson.JsonObject p_286850_, String p_286682_, DeserializationContext p_286876_) boolean
matches
(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) boolean
matches
(ServerPlayer p_36612_, Entity p_36613_) com.google.gson.JsonElement
static ContextAwarePredicate
wrap
(EntityPredicate p_286570_)
-
Field Details
-
ANY
-
entityType
-
distanceToPlayer
-
location
-
steppingOnLocation
-
effects
-
nbt
-
flags
-
equipment
-
subPredicate
-
vehicle
-
passenger
-
targetedEntity
-
team
-
-
Constructor Details
-
EntityPredicate
private EntityPredicate(EntityTypePredicate p_218789_, DistancePredicate p_218790_, LocationPredicate p_218791_, LocationPredicate p_218792_, MobEffectsPredicate p_218793_, NbtPredicate p_218794_, EntityFlagsPredicate p_218795_, EntityEquipmentPredicate p_218796_, EntitySubPredicate p_218797_, @Nullable String p_218798_) -
EntityPredicate
EntityPredicate(EntityTypePredicate p_218775_, DistancePredicate p_218776_, LocationPredicate p_218777_, LocationPredicate p_218778_, MobEffectsPredicate p_218779_, NbtPredicate p_218780_, EntityFlagsPredicate p_218781_, EntityEquipmentPredicate p_218782_, EntitySubPredicate p_218783_, EntityPredicate p_218784_, EntityPredicate p_218785_, EntityPredicate p_218786_, @Nullable String p_218787_)
-
-
Method Details
-
fromJson
public static ContextAwarePredicate fromJson(com.google.gson.JsonObject p_286877_, String p_286245_, DeserializationContext p_286427_) -
fromJsonArray
public static ContextAwarePredicate[] fromJsonArray(com.google.gson.JsonObject p_286850_, String p_286682_, DeserializationContext p_286876_) -
fromElement
private static ContextAwarePredicate fromElement(String p_286569_, DeserializationContext p_286821_, @Nullable com.google.gson.JsonElement p_286582_) -
wrap
-
matches
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
createContext
-