Added Entity.teleportTo(Entity)

This commit is contained in:
Dinnerbone 2011-01-08 02:20:29 +00:00
parent 39999e2c93
commit c3a3c52e9d

View File

@ -21,11 +21,18 @@ public interface Entity {
/**
* Teleports this entity to the given location
*
*
* @param location New location to teleport this entity to
*/
public void teleportTo(Location location);
/**
* Teleports this entity to the target Entity
*
* @param destination Entity to teleport this entity to
*/
public void teleportTo(Entity destination);
/**
* Returns a unique ID for this entity
*