public interface Rotatable
Modifier and Type | Method and Description |
---|---|
Direction |
getDirection()
Gets the current cardinal direction of this entity based on
getRotation() . |
int |
getRotation()
Gets the current rotation as an angle,
|
boolean |
isFacing(Locatable locatable)
Determines if the entity is facing the given locatable.
|
boolean |
isFacingMe()
Determines if the entity is facing the player.
|
int getRotation()
Direction
Direction getDirection()
getRotation()
.boolean isFacingMe()
boolean isFacing(Locatable locatable)
locatable
- the locatable