diff options
author | bendude56 <bendude56@gmail.com> | 2013-07-07 21:56:52 -0600 |
---|---|---|
committer | turt2live <travpc@gmail.com> | 2014-08-17 11:49:33 -0600 |
commit | a329bc5536513e67420770f601880b1040de672b (patch) | |
tree | b1de117c8dd5c2424b06e608720bd8f6a57369cd /src/main/java/org | |
parent | 1c220ddc6e03804837ab71e341a2bac6a7f6b1ce (diff) | |
download | bukkit-a329bc5536513e67420770f601880b1040de672b.tar bukkit-a329bc5536513e67420770f601880b1040de672b.tar.gz bukkit-a329bc5536513e67420770f601880b1040de672b.tar.lz bukkit-a329bc5536513e67420770f601880b1040de672b.tar.xz bukkit-a329bc5536513e67420770f601880b1040de672b.zip |
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.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Entity.java | 12 |
1 files changed, 8 insertions, 4 deletions
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 <code>true</code> 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 <code>true</code> 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 |