Class NationNeutralityCostCalculationEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.nation.NationNeutralityCostCalculationEvent

public class NationNeutralityCostCalculationEvent extends org.bukkit.event.Event
Fired when calculating a nation's neutrality cost.
  • Constructor Details

    • NationNeutralityCostCalculationEvent

      @Internal public NationNeutralityCostCalculationEvent(Nation nation, double neutralityCost)
  • Method Details

    • getNation

      @NotNull public @NotNull Nation getNation()
      Gets the nation paying the neutrality cost.
      Returns:
      the nation which is paying neutrality costs
    • getNeutralityCost

      public double getNeutralityCost()
      Gets the cost for neutrality of the nation.
      Returns:
      the neutrality cost for the nation
    • setNeutralityCost

      public void setNeutralityCost(double neutralityCost)
      Sets the cost for neutrality of the nation.
      Parameters:
      neutralityCost - the value to set the neutrality cost to
    • getHandlerList

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

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