public static class EntityPredicate.Builder extends Object
Modifier and Type | Field and Description |
---|---|
private Identifier |
catType |
private DistancePredicate |
distance |
private EntityEffectPredicate |
effects |
private EntityEquipmentPredicate |
equipment |
private FishingHookPredicate |
fishHook |
private EntityFlagsPredicate |
flags |
private LocationPredicate |
location |
private NbtPredicate |
nbt |
private PlayerPredicate |
player |
private String |
team |
private EntityTypePredicate |
type |
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
EntityPredicate |
build() |
EntityPredicate.Builder |
catType(Identifier catType) |
static EntityPredicate.Builder |
create() |
EntityPredicate.Builder |
distance(DistancePredicate distance) |
EntityPredicate.Builder |
effects(EntityEffectPredicate effects) |
EntityPredicate.Builder |
equipment(EntityEquipmentPredicate equipment) |
EntityPredicate.Builder |
fishHook(FishingHookPredicate fishHook) |
EntityPredicate.Builder |
flags(EntityFlagsPredicate flags) |
EntityPredicate.Builder |
location(LocationPredicate location) |
EntityPredicate.Builder |
nbt(NbtPredicate nbt) |
EntityPredicate.Builder |
player(PlayerPredicate player) |
EntityPredicate.Builder |
team(String team) |
EntityPredicate.Builder |
type(EntityType<?> type) |
EntityPredicate.Builder |
type(EntityTypePredicate type) |
EntityPredicate.Builder |
type(Identifier catType) |
EntityPredicate.Builder |
type(Tag<EntityType<?>> tag) |
private EntityTypePredicate type
private DistancePredicate distance
private LocationPredicate location
private EntityEffectPredicate effects
private NbtPredicate nbt
private EntityFlagsPredicate flags
private EntityEquipmentPredicate equipment
private PlayerPredicate player
private FishingHookPredicate fishHook
private String team
private Identifier catType
public static EntityPredicate.Builder create()
public EntityPredicate.Builder type(EntityType<?> type)
public EntityPredicate.Builder type(Tag<EntityType<?>> tag)
public EntityPredicate.Builder type(Identifier catType)
public EntityPredicate.Builder type(EntityTypePredicate type)
public EntityPredicate.Builder distance(DistancePredicate distance)
public EntityPredicate.Builder location(LocationPredicate location)
public EntityPredicate.Builder effects(EntityEffectPredicate effects)
public EntityPredicate.Builder nbt(NbtPredicate nbt)
public EntityPredicate.Builder flags(EntityFlagsPredicate flags)
public EntityPredicate.Builder equipment(EntityEquipmentPredicate equipment)
public EntityPredicate.Builder player(PlayerPredicate player)
public EntityPredicate.Builder fishHook(FishingHookPredicate fishHook)
public EntityPredicate.Builder team(@Nullable String team)
public EntityPredicate.Builder catType(@Nullable Identifier catType)
public EntityPredicate build()