Class ClanBalanceUpdateEvent

java.lang.Object
org.bukkit.event.Event
net.sacredlabyrinth.phaed.simpleclans.events.ClanBalanceUpdateEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ClanBalanceUpdateEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

  • Method Details

    • getUpdater

      @NotNull public @NotNull BankOperator getUpdater()
      Returns:
      the balance updater
    • getClan

      @NotNull public @NotNull Clan getClan()
      Returns:
      the Clan involved
    • getBalance

      public double getBalance()
      Returns:
      the Clan's current balance
    • getNewBalance

      public double getNewBalance()
      Returns:
      the Clan's new balance
    • setNewBalance

      public void setNewBalance(double newBalance)
      Sets the Clan's new balance
      Parameters:
      newBalance - the new balance
      Throws:
      IllegalArgumentException - if newBalance is negative
    • getCause

      @NotNull public @NotNull ClanBalanceUpdateEvent.Cause getCause()
      Returns:
      the update cause
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean isCancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
      Throws:
      IllegalStateException - if the cause of the event is ClanBalanceUpdateEvent.Cause.REVERT