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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitPartiesPlayerPreTeleportEvent(PartyPlayer player, Party party, org.bukkit.Location destination)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreTeleportEvent
getPartyPlayer
in interface IPlayerPreTeleportEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreTeleportEvent
getParty
in interface IPlayerPreTeleportEvent
Party
public boolean isCancelled()
Cancellable
isCancelled
in interface org.bukkit.event.Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface org.bukkit.event.Cancellable
cancel
- true
to cancel@NotNull public @NotNull org.bukkit.Location getDestination()
Location
Copyright © 2023. All rights reserved.