diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-08 02:20:11 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-01-08 02:20:11 +0000 |
commit | 81f920d927eff20579ae476b1faa8ca410e3e9c0 (patch) | |
tree | 1680aacd76425586f0b006239df553f2dec20cb6 /src | |
parent | 860e1b762d7bf181895bc031f5d1229a7943d656 (diff) | |
download | craftbukkit-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.java | 4 |
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; } |