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 -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListdoubleGets the cost for neutrality of the town.@NotNull TowngetTown()Gets the town paying the neutrality cost.voidsetNeutralityCost(double neutralityCost) Sets the cost for neutrality of the town.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
TownNeutralityCostCalculationEvent
-
-
Method Details
-
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:
getHandlersin classorg.bukkit.event.Event
-