From a329bc5536513e67420770f601880b1040de672b Mon Sep 17 00:00:00 2001 From: bendude56 Date: Sun, 7 Jul 2013 21:56:52 -0600 Subject: Update JavaDocs regarding teleportation of entities. Fixes BUKKIT-4210 Up until Minecraft version 1.5 it was not possible to teleport entities within vehicles. With the 1.5 update came the change in the Minecraft teleportation logic to dismount before teleporting the entity, if applicable. This commit simply ammends the JavaDocs for the associated CraftBukkit half regarding the action the teleportation methods will take before completing a teleport. --- src/main/java/org/bukkit/entity/Entity.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java index 396ea208..a60172df 100644 --- a/src/main/java/org/bukkit/entity/Entity.java +++ b/src/main/java/org/bukkit/entity/Entity.java @@ -65,7 +65,8 @@ public interface Entity extends Metadatable { public World getWorld(); /** - * Teleports this entity to the given location + * Teleports this entity to the given location. If this entity is riding a + * vehicle, it will be dismounted prior to teleportation. * * @param location New location to teleport this entity to * @return true if the teleport was successful @@ -73,7 +74,8 @@ public interface Entity extends Metadatable { public boolean teleport(Location location); /** - * Teleports this entity to the given location + * Teleports this entity to the given location. If this entity is riding a + * vehicle, it will be dismounted prior to teleportation. * * @param location New location to teleport this entity to * @param cause The cause of this teleportation @@ -82,7 +84,8 @@ public interface Entity extends Metadatable { public boolean teleport(Location location, TeleportCause cause); /** - * Teleports this entity to the target Entity + * Teleports this entity to the target Entity. If this entity is riding a + * vehicle, it will be dismounted prior to teleportation. * * @param destination Entity to teleport this entity to * @return true if the teleport was successful @@ -90,7 +93,8 @@ public interface Entity extends Metadatable { public boolean teleport(Entity destination); /** - * Teleports this entity to the target Entity + * Teleports this entity to the target Entity. If this entity is riding a + * vehicle, it will be dismounted prior to teleportation. * * @param destination Entity to teleport this entity to * @param cause The cause of this teleportation -- cgit v1.2.3