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
,PlayerTeleportEndGatewayEvent
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
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Gets the cause of this teleportation eventstatic @NotNull HandlerList
Methods inherited from class org.bukkit.event.player.PlayerMoveEvent
getFrom, getTo, hasChangedBlock, hasChangedOrientation, hasChangedPosition, hasExplicitlyChangedBlock, hasExplicitlyChangedPosition, isCancelled, setCancelled, setFrom, setTo
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, 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
-