Package 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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerTeleportEvent.TeleportCause
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerTeleportEvent(Player player, Location from, Location to)
PlayerTeleportEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause)
-
Method Summary
Modifier and Type Method Description PlayerTeleportEvent.TeleportCause
getCause()
Gets the cause of this teleportation eventstatic HandlerList
getHandlerList()
HandlerList
getHandlers()
Methods inherited from class org.bukkit.event.player.PlayerMoveEvent
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo
-
Constructor Details
-
Method Details
-
getCause
Gets the cause of this teleportation event- Returns:
- Cause of the event
-
getHandlers
- Overrides:
getHandlers
in classPlayerMoveEvent
-
getHandlerList
-