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