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.
-
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.HandlerList@NotNull NationGets the nation paying the neutrality cost.doubleGets the cost for neutrality of the nation.voidsetNeutralityCost(double neutralityCost) Sets the cost for neutrality of the nation.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
NationNeutralityCostCalculationEvent
-
-
Method Details
-
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:
getHandlersin classorg.bukkit.event.Event
-