public class BukkitPartiesPotionsFriendlyFireBlockedEvent extends BukkitPartiesEvent implements Cancellable
| Constructor and Description |
|---|
BukkitPartiesPotionsFriendlyFireBlockedEvent(PartyPlayer victim,
PartyPlayer attacker,
org.bukkit.event.entity.PotionSplashEvent originalEvent) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.event.entity.PotionSplashEvent |
getOriginalEvent()
Gets 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, setApipublic BukkitPartiesPotionsFriendlyFireBlockedEvent(PartyPlayer victim, PartyPlayer attacker, org.bukkit.event.entity.PotionSplashEvent originalEvent)
@NotNull public @NotNull PartyPlayer getPlayerVictim()
PartyPlayer@NotNull public @NotNull PartyPlayer getPlayerAttacker()
PartyPlayer@NotNull public @NotNull org.bukkit.event.entity.PotionSplashEvent getOriginalEvent()
PotionSplashEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2022. All rights reserved.