summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:20:29 +0000
committerDinnerbone <dinnerbone@dinnerbone.com>2011-01-08 02:21:46 +0000
commitc3a3c52e9d66c84a28f9490836355413b2a9650a (patch)
tree096b7d09557236a5e342030983c424c265057f69 /src/main
parent39999e2c9310496ca39016824d42130c13a18c28 (diff)
downloadbukkit-c3a3c52e9d66c84a28f9490836355413b2a9650a.tar
bukkit-c3a3c52e9d66c84a28f9490836355413b2a9650a.tar.gz
bukkit-c3a3c52e9d66c84a28f9490836355413b2a9650a.tar.lz
bukkit-c3a3c52e9d66c84a28f9490836355413b2a9650a.tar.xz
bukkit-c3a3c52e9d66c84a28f9490836355413b2a9650a.zip
Added Entity.teleportTo(Entity)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/Entity.java9
1 files changed, 8 insertions, 1 deletions
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,12 +21,19 @@ 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
*
* @return Entity ID