Class EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityPredicateprivate final DistancePredicateprivate final MobEffectsPredicateprivate final EntityTypePredicateprivate final EntityEquipmentPredicateprivate final EntityFlagsPredicateprivate final LocationPredicateprivate final NbtPredicateprivate final EntityPredicateprivate final LocationPredicateprivate final EntitySubPredicateprivate final EntityPredicateprivate final Stringprivate final EntityPredicate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityPredicate(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 LootContextcreateContext(ServerPlayer p_36617_, Entity p_36618_) private static ContextAwarePredicatefromElement(String p_286569_, DeserializationContext p_286821_, com.google.gson.JsonElement p_286582_) static EntityPredicatefromJson(com.google.gson.JsonElement p_36615_) static ContextAwarePredicatefromJson(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_) booleanmatches(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) booleanmatches(ServerPlayer p_36612_, Entity p_36613_) com.google.gson.JsonElementstatic ContextAwarePredicatewrap(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
-