summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:20:11 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:20:11 +0000
commit81f920d927eff20579ae476b1faa8ca410e3e9c0 (patch)
tree1680aacd76425586f0b006239df553f2dec20cb6 /src
parent860e1b762d7bf181895bc031f5d1229a7943d656 (diff)
downloadcraftbukkit-81f920d927eff20579ae476b1faa8ca410e3e9c0.tar
craftbukkit-81f920d927eff20579ae476b1faa8ca410e3e9c0.tar.gz
craftbukkit-81f920d927eff20579ae476b1faa8ca410e3e9c0.tar.lz
craftbukkit-81f920d927eff20579ae476b1faa8ca410e3e9c0.tar.xz
craftbukkit-81f920d927eff20579ae476b1faa8ca410e3e9c0.zip
Added Entity.teleportTo(Entity)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftEntity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
index 909bfae8..d9ac3190 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftEntity.java
@@ -39,6 +39,10 @@ public abstract class CraftEntity implements org.bukkit.Entity {
entity.b(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
}
+ public void teleportTo(org.bukkit.Entity destination) {
+ teleportTo(destination.getLocation());
+ }
+
public int getEntityID() {
return entity.g;
}