类 EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明static 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
-
构造器概要
构造器限定符构造器说明private
EntityPredicate
(EntityTypePredicate pEntityType, DistancePredicate pDistanceToPlayer, LocationPredicate pLocation, LocationPredicate pSteppingOnLocation, MobEffectsPredicate pEffects, NbtPredicate pNbt, EntityFlagsPredicate pFlags, EntityEquipmentPredicate pEquipment, EntitySubPredicate pSubPredicate, String pTeam) (专用程序包)
EntityPredicate
(EntityTypePredicate pEntityType, DistancePredicate pDistanceToPlayer, LocationPredicate pLocation, LocationPredicate pSteppingOnLocation, MobEffectsPredicate pEffects, NbtPredicate pNbt, EntityFlagsPredicate pFlags, EntityEquipmentPredicate pEquipment, EntitySubPredicate pSubPredicate, EntityPredicate pVehicle, EntityPredicate pPassenger, EntityPredicate pTargetedEntity, String pTeam) -
方法概要
修饰符和类型方法说明static LootContext
createContext
(ServerPlayer pPlayer, Entity pEntity) private static ContextAwarePredicate
fromElement
(String pId, DeserializationContext pContext, com.google.gson.JsonElement pElement) static EntityPredicate
fromJson
(com.google.gson.JsonElement pJson) static ContextAwarePredicate
fromJson
(com.google.gson.JsonObject pJson, String pId, DeserializationContext pContext) static ContextAwarePredicate[]
fromJsonArray
(com.google.gson.JsonObject pJson, String pId, DeserializationContext pContext) boolean
matches
(ServerLevel pLevel, Vec3 pPosition, Entity pEntity) boolean
matches
(ServerPlayer pPlayer, Entity pEntity) com.google.gson.JsonElement
static ContextAwarePredicate
wrap
(EntityPredicate pPredicate)
-
字段详细资料
-
ANY
-
entityType
-
distanceToPlayer
-
location
-
steppingOnLocation
-
effects
-
nbt
-
flags
-
equipment
-
subPredicate
-
vehicle
-
passenger
-
targetedEntity
-
team
-
-
构造器详细资料
-
EntityPredicate
private EntityPredicate(EntityTypePredicate pEntityType, DistancePredicate pDistanceToPlayer, LocationPredicate pLocation, LocationPredicate pSteppingOnLocation, MobEffectsPredicate pEffects, NbtPredicate pNbt, EntityFlagsPredicate pFlags, EntityEquipmentPredicate pEquipment, EntitySubPredicate pSubPredicate, @Nullable String pTeam) -
EntityPredicate
EntityPredicate(EntityTypePredicate pEntityType, DistancePredicate pDistanceToPlayer, LocationPredicate pLocation, LocationPredicate pSteppingOnLocation, MobEffectsPredicate pEffects, NbtPredicate pNbt, EntityFlagsPredicate pFlags, EntityEquipmentPredicate pEquipment, EntitySubPredicate pSubPredicate, EntityPredicate pVehicle, EntityPredicate pPassenger, EntityPredicate pTargetedEntity, @Nullable String pTeam)
-
-
方法详细资料
-
fromJson
public static ContextAwarePredicate fromJson(com.google.gson.JsonObject pJson, String pId, DeserializationContext pContext) -
fromJsonArray
public static ContextAwarePredicate[] fromJsonArray(com.google.gson.JsonObject pJson, String pId, DeserializationContext pContext) -
fromElement
private static ContextAwarePredicate fromElement(String pId, DeserializationContext pContext, @Nullable com.google.gson.JsonElement pElement) -
wrap
-
matches
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
createContext
-