Class EntityPredicate
java.lang.Object
net.minecraft.advancements.criterion.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 FishingPredicate
private final EntityFlagsPredicate
private final LocationPredicate
private final NBTPredicate
private final PlayerPredicate
private final EntityPredicate
private final String
private final EntityPredicate
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityPredicate
(EntityTypePredicate p_i241236_1_, DistancePredicate p_i241236_2_, LocationPredicate p_i241236_3_, MobEffectsPredicate p_i241236_4_, NBTPredicate p_i241236_5_, EntityFlagsPredicate p_i241236_6_, EntityEquipmentPredicate p_i241236_7_, PlayerPredicate p_i241236_8_, FishingPredicate p_i241236_9_, String p_i241236_10_, ResourceLocation p_i241236_11_) private
EntityPredicate
(EntityTypePredicate p_i231578_1_, DistancePredicate p_i231578_2_, LocationPredicate p_i231578_3_, MobEffectsPredicate p_i231578_4_, NBTPredicate p_i231578_5_, EntityFlagsPredicate p_i231578_6_, EntityEquipmentPredicate p_i231578_7_, PlayerPredicate p_i231578_8_, FishingPredicate p_i231578_9_, EntityPredicate p_i231578_10_, EntityPredicate p_i231578_11_, String p_i231578_12_, ResourceLocation p_i231578_13_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootContext
createContext
(ServerPlayerEntity p_234575_0_, Entity p_234575_1_) static EntityPredicate
fromJson
(com.google.gson.JsonElement p_192481_0_) boolean
matches
(ServerPlayerEntity p_192482_1_, Entity p_192482_2_) boolean
matches
(ServerWorld p_217993_1_, Vector3d p_217993_2_, Entity p_217993_3_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
entityType
-
distanceToPlayer
-
location
-
effects
-
nbt
-
flags
-
equipment
-
player
-
fishingHook
-
vehicle
-
targetedEntity
-
team
-
catType
-
-
Constructor Details
-
EntityPredicate
private EntityPredicate(EntityTypePredicate p_i241236_1_, DistancePredicate p_i241236_2_, LocationPredicate p_i241236_3_, MobEffectsPredicate p_i241236_4_, NBTPredicate p_i241236_5_, EntityFlagsPredicate p_i241236_6_, EntityEquipmentPredicate p_i241236_7_, PlayerPredicate p_i241236_8_, FishingPredicate p_i241236_9_, @Nullable String p_i241236_10_, @Nullable ResourceLocation p_i241236_11_) -
EntityPredicate
private EntityPredicate(EntityTypePredicate p_i231578_1_, DistancePredicate p_i231578_2_, LocationPredicate p_i231578_3_, MobEffectsPredicate p_i231578_4_, NBTPredicate p_i231578_5_, EntityFlagsPredicate p_i231578_6_, EntityEquipmentPredicate p_i231578_7_, PlayerPredicate p_i231578_8_, FishingPredicate p_i231578_9_, EntityPredicate p_i231578_10_, EntityPredicate p_i231578_11_, @Nullable String p_i231578_12_, @Nullable ResourceLocation p_i231578_13_)
-
-
Method Details
-
matches
-
matches
public boolean matches(ServerWorld p_217993_1_, @Nullable Vector3d p_217993_2_, @Nullable Entity p_217993_3_) -
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
createContext
-