From c3a3c52e9d66c84a28f9490836355413b2a9650a Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Sat, 8 Jan 2011 02:20:29 +0000 Subject: Added Entity.teleportTo(Entity) --- src/main/java/org/bukkit/Entity.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/org/bukkit/Entity.java b/src/main/java/org/bukkit/Entity.java index 773354d0..9b4e63d0 100644 --- a/src/main/java/org/bukkit/Entity.java +++ b/src/main/java/org/bukkit/Entity.java @@ -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 * -- cgit v1.2.3