public interface Entity extends CommandSender
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBoundingBox()
Get the bounding box of the current entity
|
int |
getEntityId()
Get the entity ID
|
double |
getEyeHeight() |
default Location |
getEyeLocation() |
Location |
getLocation()
Get the entity location
|
default Vector |
getRotation()
Get the rotation (also called "direction") of the entity
|
EntityType |
getType()
Get the type of the entity
|
World |
getWorld()
Get the world of the entity
|
boolean |
isDead()
Check if the entity is dead
|
boolean |
isOnGround()
Check if the given entity is currently on ground
|
boolean |
isOp()
Check if the actual entity is OP or not
|
default boolean |
isSameId(Entity other)
Check if this entity can be applied to this other entity
|
default boolean |
isSameId(int id) |
default boolean |
isSameId(String id)
Deprecated.
|
getName, sendMessage
getDefault
boolean isOnGround()
boolean isOp()
Location getLocation()
World getWorld()
double getEyeHeight()
default Location getEyeLocation()
default Vector getRotation()
EntityType getType()
boolean isDead()
int getEntityId()
@Deprecated default boolean isSameId(String id)
id
- the id to checkdefault boolean isSameId(int id)
default boolean isSameId(Entity other)
other
- the entityBoundingBox getBoundingBox()