public interface OfflinePlayer extends Entity
Modifier and Type | Method and Description |
---|---|
default double |
getEyeHeight() |
default Location |
getEyeLocation() |
default Location |
getLocation()
Get the entity location
|
default Vector |
getRotation()
Get the rotation (also called "direction") of the entity
|
default Vector |
getTheoricVelocity()
Get the velocity that the entity SHOULD be take
|
default EntityType |
getType()
Get the type of the entity
|
UUID |
getUniqueId() |
default Vector |
getVelocity()
Get current entity velocity
|
default World |
getWorld()
Get the world of the entity
|
boolean |
hasPlayedBefore() |
default boolean |
isDead()
Check if the entity is dead
|
default boolean |
isOnGround()
Check if the given entity is currently on ground
|
boolean |
isOnline() |
default void |
sendMessage(String msg) |
default void |
setVelocity(Vector vel)
Edit the entity velocity
|
applyTheoricVelocity, getBoundingBox, getEntityId, getTargetBlock, isOp, isSameId, isSameId
getName
getDefault
UUID getUniqueId()
boolean isOnline()
boolean hasPlayedBefore()
default World getWorld()
Entity
default boolean isDead()
Entity
default boolean isOnGround()
Entity
isOnGround
in interface Entity
default Location getLocation()
Entity
getLocation
in interface Entity
default EntityType getType()
Entity
default Location getEyeLocation()
getEyeLocation
in interface Entity
default Vector getRotation()
Entity
getRotation
in interface Entity
default Vector getVelocity()
Entity
getVelocity
in interface Entity
default Vector getTheoricVelocity()
Entity
getTheoricVelocity
in interface Entity
default void setVelocity(Vector vel)
Entity
setVelocity
in interface Entity
vel
- the new velocitydefault void sendMessage(String msg)
sendMessage
in interface CommandSender
default double getEyeHeight()
getEyeHeight
in interface Entity