Cancellable
PlayerPortalEvent
, PlayerTeleportEndGatewayEvent
public class PlayerTeleportEvent extends PlayerMoveEvent
Modifier and Type | Class | Description |
---|---|---|
static class |
PlayerTeleportEvent.TeleportCause |
Event.Result
player
Constructor | 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 | Description |
---|---|---|
@NotNull PlayerTeleportEvent.TeleportCause |
getCause() |
Gets the cause of this teleportation event
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo
public PlayerTeleportEvent(@NotNull @NotNull Player player, @NotNull @NotNull Location from, @Nullable @Nullable Location to)
public PlayerTeleportEvent(@NotNull @NotNull Player player, @NotNull @NotNull Location from, @Nullable @Nullable Location to, @NotNull @NotNull PlayerTeleportEvent.TeleportCause cause)
@NotNull public @NotNull PlayerTeleportEvent.TeleportCause getCause()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class PlayerMoveEvent
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.