Class EntityPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityPredicate
-
public class EntityPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityPredicate.AndPredicate
static class
EntityPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static EntityPredicate
ANY
private ResourceLocation
catType
private DistancePredicate
distanceToPlayer
private MobEffectsPredicate
effects
private EntityTypePredicate
entityType
private EntityEquipmentPredicate
equipment
private FishingPredicate
fishingHook
private EntityFlagsPredicate
flags
private LocationPredicate
location
private NBTPredicate
nbt
private PlayerPredicate
player
private EntityPredicate
targetedEntity
private java.lang.String
team
private EntityPredicate
vehicle
-
Constructor Summary
Constructors Modifier Constructor Description 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_, java.lang.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_, java.lang.String p_i231578_12_, ResourceLocation p_i231578_13_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final EntityPredicate ANY
-
entityType
private final EntityTypePredicate entityType
-
distanceToPlayer
private final DistancePredicate distanceToPlayer
-
location
private final LocationPredicate location
-
effects
private final MobEffectsPredicate effects
-
nbt
private final NBTPredicate nbt
-
flags
private final EntityFlagsPredicate flags
-
equipment
private final EntityEquipmentPredicate equipment
-
player
private final PlayerPredicate player
-
fishingHook
private final FishingPredicate fishingHook
-
vehicle
private final EntityPredicate vehicle
-
targetedEntity
private final EntityPredicate targetedEntity
-
team
@Nullable private final java.lang.String team
-
catType
@Nullable private final ResourceLocation catType
-
-
Constructor Detail
-
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 java.lang.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 java.lang.String p_i231578_12_, @Nullable ResourceLocation p_i231578_13_)
-
-
Method Detail
-
matches
public boolean matches(ServerPlayerEntity p_192482_1_, @Nullable Entity p_192482_2_)
-
matches
public boolean matches(ServerWorld p_217993_1_, @Nullable Vector3d p_217993_2_, @Nullable Entity p_217993_3_)
-
fromJson
public static EntityPredicate fromJson(@Nullable com.google.gson.JsonElement p_192481_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
createContext
public static LootContext createContext(ServerPlayerEntity p_234575_0_, Entity p_234575_1_)
-
-