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
Holds information for player teleport events
-
Nested Class Summary
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
ConstructorDescriptionPlayerTeleportEvent(Player player, Location from, Location to)
PlayerTeleportEvent(Player player, Location from, Location to, PlayerTeleportEvent.TeleportCause cause)
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Gets the cause of this teleportation eventstatic HandlerList
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
-
Constructor Details
-
PlayerTeleportEvent
-
PlayerTeleportEvent
-
-
Method Details
-
getCause
Gets the cause of this teleportation event- Returns:
- Cause of the event
-
getHandlers
- Overrides:
getHandlers
in classPlayerMoveEvent
-
getHandlerList
-