org.bukkit.event.player
Class PlayerTeleportEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.player.PlayerEvent
          extended by org.bukkit.event.player.PlayerMoveEvent
              extended by org.bukkit.event.player.PlayerTeleportEvent
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
PlayerPortalEvent

public class PlayerTeleportEvent
extends PlayerMoveEvent

Holds information for player teleport events


Nested Class Summary
static class PlayerTeleportEvent.TeleportCause
           
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
 
Constructor Summary
PlayerTeleportEvent(Player player, Location from, Location to)
           
PlayerTeleportEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause)
           
 
Method Summary
 PlayerTeleportEvent.TeleportCause getCause()
          Gets the cause of this teleportation event
static HandlerList getHandlerList()
           
 HandlerList getHandlers()
           
 
Methods inherited from class org.bukkit.event.player.PlayerMoveEvent
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo
 
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerTeleportEvent

public PlayerTeleportEvent(Player player,
                           Location from,
                           Location to)

PlayerTeleportEvent

public PlayerTeleportEvent(Player player,
                           Location from,
                           Location to,
                           PlayerTeleportEvent.TeleportCause cause)
Method Detail

getCause

public PlayerTeleportEvent.TeleportCause getCause()
Gets the cause of this teleportation event

Returns:
Cause of the event

getHandlers

public HandlerList getHandlers()
Overrides:
getHandlers in class PlayerMoveEvent

getHandlerList

public static HandlerList getHandlerList()


Copyright © 2013. All Rights Reserved.