WarpEntityEvent

The Warp Entity Event is an event called when an entity other than a Player is teleported with Warp. To see players teleported with Warp, see WarpPlayerEvent.

Description
The WarpEntityEvent is a class that adds two local variables: a list of valid other locations the Warp function has found close by, and the EnchantmentLevel information (since it directly extends the EntityTeleportEvent).

Constructor
WarpEntityEvent(LivingEntity entity, Location from, Location to, List otherLocations, int level)
 * // LivingEntity entity - the entity being teleported
 * // Location from - the location the entity is currently
 * // Location to - the location where the entity will teleport
 * // List otherLocations - the other valid locations found with Warp
 * // int level - the level of Warp on the entity's leggings

Implements
None

Extends
EntityTeleportEvent

List getOtherLocations
Returns the list of other valid locations near the entity to teleport to

EnchantmentLevel getEnchantment
Returns the enchantment and level information being used by this event