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