public interface Entity extends CommandSender
Modifier and Type | Method and Description |
---|---|
void |
applyTheoricVelocity() |
BoundingBox |
getBoundingBox()
Get the bounding box of the current entity
|
String |
getEntityId()
Get the entity ID
|
double |
getEyeHeight() |
Location |
getEyeLocation() |
Location |
getLocation()
Get the entity location
|
Vector |
getRotation()
Get the rotation (also called "direction") of the entity
|
List<Block> |
getTargetBlock(int maxDistance) |
Vector |
getTheoricVelocity()
Get the velocity that the entity SHOULD be take
|
EntityType |
getType()
Get the type of the entity
|
Vector |
getVelocity()
Get current entity velocity
|
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(String id)
Check if this entity can be applied to this id
|
void |
setVelocity(Vector vel)
Edit the entity velocity
|
getName, sendMessage
getDefault
boolean isOnGround()
boolean isOp()
Location getLocation()
World getWorld()
double getEyeHeight()
Location getEyeLocation()
Vector getRotation()
EntityType getType()
boolean isDead()
String getEntityId()
default boolean isSameId(String id)
id
- the id to checkdefault boolean isSameId(Entity other)
other
- the entityBoundingBox getBoundingBox()
Vector getVelocity()
void applyTheoricVelocity()
Vector getTheoricVelocity()
void setVelocity(Vector vel)
vel
- the new velocity