public class BukkitPartiesPlayerPreTeleportEvent extends BukkitPartiesEvent implements IPlayerPreTeleportEvent, org.bukkit.event.Cancellable
| Constructor and Description |
|---|
BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player,
Party party,
org.bukkit.Location destination) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.Location |
getDestination()
Get the destination as Location
|
@NotNull Party |
getParty()
Get the party
|
@NotNull PartyPlayer |
getPartyPlayer()
Get the player who is getting teleported
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, getHandlerList, getHandlers, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, org.bukkit.Location destination)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreTeleportEventgetPartyPlayer in interface IPlayerPreTeleportEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreTeleportEventgetParty in interface IPlayerPreTeleportEventPartypublic boolean isCancelled()
CancellableisCancelled in interface org.bukkit.event.Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface org.bukkit.event.Cancellablecancel - true to cancel@NotNull public @NotNull org.bukkit.Location getDestination()
LocationCopyright © 2023. All rights reserved.