public final class EntityPredicates extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityPredicates.Equipable |
Modifier and Type | Field and Description |
---|---|
static Predicate<Entity> |
EXCEPT_CREATIVE_OR_SPECTATOR |
static Predicate<Entity> |
EXCEPT_CREATIVE_SPECTATOR_OR_PEACEFUL |
static Predicate<Entity> |
EXCEPT_SPECTATOR |
static Predicate<Entity> |
NOT_MOUNTED
Tests if an entity is not mounted.
|
static Predicate<Entity> |
VALID_ENTITY
Tests if an entity is valid.
|
static Predicate<Entity> |
VALID_INVENTORIES
Tests if an entity has a valid inventory.
|
static Predicate<LivingEntity> |
VALID_LIVING_ENTITY
Tests if a living entity is valid.
|
Constructor and Description |
---|
EntityPredicates() |
Modifier and Type | Method and Description |
---|---|
static Predicate<Entity> |
canBePushedBy(Entity entity) |
static Predicate<Entity> |
maxDistance(double x,
double y,
double z,
double double2) |
static Predicate<Entity> |
rides(Entity entity) |
public static final Predicate<Entity> VALID_ENTITY
An entity is valid when the entity is alive.
Entity.isAlive()
public static final Predicate<LivingEntity> VALID_LIVING_ENTITY
A living entity is valid when the entity is alive.
LivingEntity.isAlive()
public static final Predicate<Entity> NOT_MOUNTED
An entity is not mounted when:
public static final Predicate<Entity> VALID_INVENTORIES
An entity has a valid inventory when:
Inventory
StorageMinecartEntity
public static final Predicate<Entity> EXCEPT_CREATIVE_SPECTATOR_OR_PEACEFUL