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.

By: bendude56 <bendude56@gmail.com>
This commit is contained in:
Bukkit/Spigot 2013-07-07 21:56:52 -06:00
parent e6c4525647
commit 84fc1478c5

View file

@ -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