Package net.minecraft.predicate.entity
Class EntityPredicate
java.lang.Object
net.minecraft.predicate.entity.EntityPredicate
public class EntityPredicate extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityPredicate.Builder
static class
EntityPredicate.Extended
-
Field Summary
Fields Modifier and Type Field Description static EntityPredicate
ANY
private Identifier
catType
private DistancePredicate
distance
private EntityEffectPredicate
effects
private EntityEquipmentPredicate
equipment
private FishingHookPredicate
fishingHook
private EntityFlagsPredicate
flags
private LocationPredicate
location
private NbtPredicate
nbt
private PlayerPredicate
player
private EntityPredicate
targetedEntity
private String
team
private EntityTypePredicate
type
private EntityPredicate
vehicle
-
Constructor Summary
Constructors Modifier Constructor Description private
EntityPredicate(EntityTypePredicate entityTypePredicate, DistancePredicate distancePredicate, LocationPredicate locationPredicate, EntityEffectPredicate entityEffectPredicate, NbtPredicate nbtPredicate, EntityFlagsPredicate entityFlagsPredicate, EntityEquipmentPredicate entityEquipmentPredicate, PlayerPredicate playerPredicate, FishingHookPredicate fishingHookPredicate, String string, Identifier identifier)
private
EntityPredicate(EntityTypePredicate type, DistancePredicate distance, LocationPredicate location, EntityEffectPredicate effects, NbtPredicate nbt, EntityFlagsPredicate flags, EntityEquipmentPredicate equipment, PlayerPredicate player, FishingHookPredicate fishingHook, EntityPredicate vehicle, EntityPredicate targetedEntity, String team, Identifier catType)
-
Method Summary
Modifier and Type Method Description static LootContext
createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
static EntityPredicate
fromJson(JsonElement json)
boolean
test(ServerPlayerEntity player, Entity entity)
boolean
test(ServerWorld world, Vec3d pos, Entity entity)
JsonElement
toJson()
-
Field Details
-
ANY
-
type
-
distance
-
location
-
effects
-
nbt
-
flags
-
equipment
-
player
-
fishingHook
-
vehicle
-
targetedEntity
-
team
-
catType
-
-
Constructor Details
-
EntityPredicate
private EntityPredicate(EntityTypePredicate entityTypePredicate, DistancePredicate distancePredicate, LocationPredicate locationPredicate, EntityEffectPredicate entityEffectPredicate, NbtPredicate nbtPredicate, EntityFlagsPredicate entityFlagsPredicate, EntityEquipmentPredicate entityEquipmentPredicate, PlayerPredicate playerPredicate, FishingHookPredicate fishingHookPredicate, @Nullable String string, @Nullable Identifier identifier) -
EntityPredicate
private EntityPredicate(EntityTypePredicate type, DistancePredicate distance, LocationPredicate location, EntityEffectPredicate effects, NbtPredicate nbt, EntityFlagsPredicate flags, EntityEquipmentPredicate equipment, PlayerPredicate player, FishingHookPredicate fishingHook, EntityPredicate vehicle, EntityPredicate targetedEntity, @Nullable String team, @Nullable Identifier catType)
-
-
Method Details
-
test
-
test
-
fromJson
-
toJson
-
createAdvancementEntityLootContext
public static LootContext createAdvancementEntityLootContext(ServerPlayerEntity player, Entity target)
-