Package net.minecraft.predicate.entity
Class EntityPredicates
java.lang.Object
net.minecraft.predicate.entity.EntityPredicates
public final class EntityPredicates extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EntityPredicates.Equipable
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description EntityPredicates()
-
Method Summary
-
Field Details
-
VALID_ENTITY
Tests if an entity is valid.An entity is valid when the entity is alive.
- See Also:
Entity.isAlive()
-
VALID_LIVING_ENTITY
Tests if a living entity is valid.A living entity is valid when the entity is alive.
- See Also:
LivingEntity.isAlive()
-
NOT_MOUNTED
Tests if an entity is not mounted.An entity is not mounted when:
- The entity is alive
- The entity has no passengers
- The entity is not in a vehicle
-
VALID_INVENTORIES
Tests if an entity has a valid inventory.An entity has a valid inventory when:
- The entity is alive
- The entity implements
Inventory
- See Also:
StorageMinecartEntity
-
EXCEPT_CREATIVE_OR_SPECTATOR
-
EXCEPT_CREATIVE_SPECTATOR_OR_PEACEFUL
-
EXCEPT_SPECTATOR
-
-
Constructor Details
-
EntityPredicates
public EntityPredicates()
-
-
Method Details
-
maxDistance
-
canBePushedBy
-
rides
-