summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorByron Shelden <byron.shelden@gmail.com>2011-03-23 00:15:46 -0700
committerErik Broes <erikbroes@grum.nl>2011-03-23 18:38:48 +0100
commitfbbae50ba04f00c93399211e67541575e1643452 (patch)
tree638b6daa4e54513bf38434b3efa6e6ad65380eb1 /src/main/java/org
parentd6341293e77cfd51260ff130454e51db182bbc21 (diff)
downloadbukkit-fbbae50ba04f00c93399211e67541575e1643452.tar
bukkit-fbbae50ba04f00c93399211e67541575e1643452.tar.gz
bukkit-fbbae50ba04f00c93399211e67541575e1643452.tar.lz
bukkit-fbbae50ba04f00c93399211e67541575e1643452.tar.xz
bukkit-fbbae50ba04f00c93399211e67541575e1643452.zip
Replaced void teleportTo(Location) with boolean teleport(Location).
- The return value indicates if the teleport was successful. - void teleportTo(...) should delegate to the new teleport(...).
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/entity/Entity.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
index f9298746..a7adc54a 100644
--- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/src/main/java/org/bukkit/entity/Entity.java
@@ -42,6 +42,23 @@ public interface Entity {
* Teleports this entity to the given location
*
* @param location New location to teleport this entity to
+ * @return <code>true</code> if the teleport was successful
+ */
+ public boolean teleport(Location location);
+
+ /**
+ * Teleports this entity to the target Entity
+ *
+ * @param destination Entity to teleport this entity to
+ * @return <code>true</code> if the teleport was successful
+ */
+ public boolean teleport(Entity destination);
+
+ /**
+ * Teleports this entity to the given location
+ *
+ * @param location New location to teleport this entity to
+ * @deprecated use {@link #teleport(Location)}
*/
public void teleportTo(Location location);
@@ -49,6 +66,7 @@ public interface Entity {
* Teleports this entity to the target Entity
*
* @param destination Entity to teleport this entity to
+ * @deprecated use {@link #teleport(Entity)}
*/
public void teleportTo(Entity destination);