org.bukkit.event.player
Class PlayerTeleportEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerMoveEvent
org.bukkit.event.player.PlayerTeleportEvent
- All Implemented Interfaces:
- Cancellable
- Direct Known Subclasses:
- PlayerPortalEvent
public class PlayerTeleportEvent
- extends PlayerMoveEvent
Holds information for player teleport events
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerTeleportEvent
public PlayerTeleportEvent(Player player,
Location from,
Location to)
PlayerTeleportEvent
public PlayerTeleportEvent(Player player,
Location from,
Location to,
PlayerTeleportEvent.TeleportCause cause)
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.