Class BukkitPartiesCombustFriendlyFireBlockedEvent

java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.unique.BukkitPartiesCombustFriendlyFireBlockedEvent
All Implemented Interfaces:
Cancellable, PartiesEvent

public class BukkitPartiesCombustFriendlyFireBlockedEvent extends BukkitPartiesEvent implements Cancellable
  • Constructor Details

    • BukkitPartiesCombustFriendlyFireBlockedEvent

      public BukkitPartiesCombustFriendlyFireBlockedEvent(PartyPlayer victim, PartyPlayer attacker, org.bukkit.event.entity.EntityCombustByEntityEvent originalEvent)
  • Method Details

    • getPlayerVictim

      @NotNull public @NotNull PartyPlayer getPlayerVictim()
      Get the victim of the event
      Returns:
      the PartyPlayer
    • getPlayerAttacker

      @NotNull public @NotNull PartyPlayer getPlayerAttacker()
      Get the attacker
      Returns:
      the PartyPlayer
    • getOriginalEvent

      @NotNull public @NotNull org.bukkit.event.entity.EntityCombustByEntityEvent getOriginalEvent()
      Get the original Bukkit event handled by Parties
      Returns:
      the original EntityCombustByEntityEvent
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Is the event cancelled?
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if the event is cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: Cancellable
      Set the event as cancelled
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancel - true to cancel