public class PlayerPortalEvent extends PlayerTeleportEvent
For other entities see EntityPortalEvent
PlayerTeleportEvent.TeleportCause
Event.Result
player
Constructor and Description |
---|
PlayerPortalEvent(Player player,
Location from,
Location to) |
PlayerPortalEvent(Player player,
Location from,
Location to,
PlayerTeleportEvent.TeleportCause cause) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
getCause
getFrom, getTo, isCancelled, setCancelled, setFrom, setTo
getPlayer
callEvent, getEventName, isAsynchronous
public PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to)
public PlayerPortalEvent(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause)
@NotNull public HandlerList getHandlers()
getHandlers
in class PlayerTeleportEvent
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.