Added a method to teleport entities across worlds.

This commit is contained in:
Matthew Miller
2018-12-21 16:56:10 +10:00
committed by IronApollo
parent 7a9bd226ce
commit c935e381b7
14 changed files with 287 additions and 2 deletions

View File

@ -54,6 +54,14 @@ public interface Entity extends Faceted {
*/
Location getLocation();
/**
* Sets the location of this entity.
*
* @param location the new location of the entity
* @return if the teleport worked
*/
boolean setLocation(Location location);
/**
* Get the extent that this entity is on.
*