Class TownNeutralCostPaidEvent

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

public class TownNeutralCostPaidEvent extends org.bukkit.event.Event
Fired when a town has paid neutrality costs.
  • Nested Class Summary

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

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

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

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    double
    Returns the neutrality cost for this town, which is always positive.
    @NotNull Town
    Returns the town which is paying neutrality costs.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • TownNeutralCostPaidEvent

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

    • getTown

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

      public double getNeutralityCost()
      Returns the neutrality cost for this town, which is always positive.
      Returns:
      the neutrality cost for this town, which is always positive
    • 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