public class BukkitPartiesFishHookFriendlyFireBlockedEvent extends BukkitPartiesEvent implements Cancellable
Constructor and Description |
---|
BukkitPartiesFishHookFriendlyFireBlockedEvent(PartyPlayer victim,
PartyPlayer attacker,
org.bukkit.event.player.PlayerFishEvent originalEvent) |
Modifier and Type | Method and Description |
---|---|
@Nullable org.bukkit.event.player.PlayerFishEvent |
getOriginalEvent()
Get the original Bukkit event handled by Parties
|
@NotNull PartyPlayer |
getPlayerAttacker()
Get the attacker
|
@NotNull PartyPlayer |
getPlayerVictim()
Get the victim of the event
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, getHandlerList, getHandlers, setApi
public BukkitPartiesFishHookFriendlyFireBlockedEvent(PartyPlayer victim, PartyPlayer attacker, org.bukkit.event.player.PlayerFishEvent originalEvent)
@NotNull public @NotNull PartyPlayer getPlayerVictim()
PartyPlayer
@NotNull public @NotNull PartyPlayer getPlayerAttacker()
PartyPlayer
@Nullable public @Nullable org.bukkit.event.player.PlayerFishEvent getOriginalEvent()
PlayerFishEvent
, or null
if there is no bukkit eventpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.