Class TownNeutralityCostCalculationEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.town.TownNeutralityCostCalculationEvent

public class TownNeutralityCostCalculationEvent extends org.bukkit.event.Event
Fired when calculating a town's neutrality cost.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    TownNeutralityCostCalculationEvent(Town town, double neutralityCost)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    double
    Gets the cost for neutrality of the town.
    @NotNull Town
    Gets the town paying the neutrality cost.
    void
    setNeutralityCost(double neutralityCost)
    Sets the cost for neutrality of the town.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TownNeutralityCostCalculationEvent

      @Internal public TownNeutralityCostCalculationEvent(Town town, double neutralityCost)
  • Method Details

    • getTown

      @NotNull public @NotNull Town getTown()
      Gets the town paying the neutrality cost.
      Returns:
      the town which is paying neutrality costs
    • getNeutralityCost

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

      public void setNeutralityCost(double neutralityCost)
      Sets the cost for neutrality of the town.
      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