Class EntityPredicate
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityPredicateprivate final ResourceLocationprivate final DistancePredicateprivate final MobEffectsPredicateprivate final EntityTypePredicateprivate final EntityEquipmentPredicateprivate final FishingHookPredicateprivate final EntityFlagsPredicateprivate final LighthingBoltPredicateprivate final LocationPredicateprivate final NbtPredicateprivate final EntityPredicateprivate final PlayerPredicateprivate final LocationPredicateprivate final EntityPredicateprivate final Stringprivate final EntityPredicate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityPredicate(EntityTypePredicate p_150306_, DistancePredicate p_150307_, LocationPredicate p_150308_, LocationPredicate p_150309_, MobEffectsPredicate p_150310_, NbtPredicate p_150311_, EntityFlagsPredicate p_150312_, EntityEquipmentPredicate p_150313_, PlayerPredicate p_150314_, FishingHookPredicate p_150315_, LighthingBoltPredicate p_150316_, String p_150317_, ResourceLocation p_150318_) (package private)EntityPredicate(EntityTypePredicate p_150289_, DistancePredicate p_150290_, LocationPredicate p_150291_, LocationPredicate p_150292_, MobEffectsPredicate p_150293_, NbtPredicate p_150294_, EntityFlagsPredicate p_150295_, EntityEquipmentPredicate p_150296_, PlayerPredicate p_150297_, FishingHookPredicate p_150298_, LighthingBoltPredicate p_150299_, EntityPredicate p_150300_, EntityPredicate p_150301_, EntityPredicate p_150302_, String p_150303_, ResourceLocation p_150304_) -
Method Summary
Modifier and TypeMethodDescriptionstatic LootContextcreateContext(ServerPlayer p_36617_, Entity p_36618_) static EntityPredicatefromJson(com.google.gson.JsonElement p_36615_) booleanmatches(ServerLevel p_36608_, Vec3 p_36609_, Entity p_36610_) booleanmatches(ServerPlayer p_36612_, Entity p_36613_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
entityType
-
distanceToPlayer
-
location
-
steppingOnLocation
-
effects
-
nbt
-
flags
-
equipment
-
player
-
fishingHook
-
lighthingBolt
-
vehicle
-
passenger
-
targetedEntity
-
team
-
catType
-
-
Constructor Details
-
EntityPredicate
private EntityPredicate(EntityTypePredicate p_150306_, DistancePredicate p_150307_, LocationPredicate p_150308_, LocationPredicate p_150309_, MobEffectsPredicate p_150310_, NbtPredicate p_150311_, EntityFlagsPredicate p_150312_, EntityEquipmentPredicate p_150313_, PlayerPredicate p_150314_, FishingHookPredicate p_150315_, LighthingBoltPredicate p_150316_, @Nullable String p_150317_, @Nullable ResourceLocation p_150318_) -
EntityPredicate
EntityPredicate(EntityTypePredicate p_150289_, DistancePredicate p_150290_, LocationPredicate p_150291_, LocationPredicate p_150292_, MobEffectsPredicate p_150293_, NbtPredicate p_150294_, EntityFlagsPredicate p_150295_, EntityEquipmentPredicate p_150296_, PlayerPredicate p_150297_, FishingHookPredicate p_150298_, LighthingBoltPredicate p_150299_, EntityPredicate p_150300_, EntityPredicate p_150301_, EntityPredicate p_150302_, @Nullable String p_150303_, @Nullable ResourceLocation p_150304_)
-
-
Method Details
-
matches
-
matches
-
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
createContext
-