From f2e2a23693e5b9ae80f84f1e486f1ee92e16e679 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 8 Jan 2011 02:20:29 +0000 Subject: [PATCH] Added Entity.teleportTo(Entity) By: Dinnerbone --- paper-api/src/main/java/org/bukkit/Entity.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/Entity.java b/paper-api/src/main/java/org/bukkit/Entity.java index 773354d070..9b4e63d0b2 100644 --- a/paper-api/src/main/java/org/bukkit/Entity.java +++ b/paper-api/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 *