public class PlayerTeleportEvent extends PlayerMoveEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerTeleportEvent.TeleportCause |
Event.Result
player
Constructor and Description |
---|
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to) |
PlayerTeleportEvent(@NotNull Player player,
@NotNull Location from,
@Nullable Location to,
@NotNull PlayerTeleportEvent.TeleportCause cause) |
Modifier and Type | Method and Description |
---|---|
@NotNull PlayerTeleportEvent.TeleportCause |
getCause()
Gets the cause of this teleportation event
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
getFrom, getTo, hasChangedBlock, hasChangedOrientation, hasChangedPosition, hasExplicitlyChangedBlock, hasExplicitlyChangedPosition, isCancelled, setCancelled, setFrom, setTo
getPlayer
callEvent, getEventName, isAsynchronous
public PlayerTeleportEvent(@NotNull @NotNull Player player, @NotNull @NotNull Location from, @Nullable @Nullable Location to)
@NotNull public @NotNull PlayerTeleportEvent.TeleportCause getCause()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class PlayerMoveEvent
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.