public interface Locatable
Modifier and Type | Method and Description |
---|---|
default Location |
getBlockLocation()
Get the location of this actor in block coordinates.
|
Extent |
getExtent()
Get the extent that this actor is in.
|
Location |
getLocation()
Get the location of this actor.
|
boolean |
setLocation(Location location)
Sets the location of this actor.
|
default void |
setPosition(Vector3 pos)
Sets the position of this actor.
|
Location getLocation()
default Location getBlockLocation()
boolean setLocation(Location location)
location
- the new location of the actordefault void setPosition(Vector3 pos)
pos
- where to move themExtent getExtent()