Class CapitalDayEvent
java.lang.Object
org.bukkit.event.Event
com.patelheet.capitalengine.api.event.CapitalDayEvent
public class CapitalDayEvent
extends org.bukkit.event.Event
Economic day boundary, on the main/global thread. Fires in order and exactly once per index.
catchUp means the boundary happened while the server was offline; skip payouts such as interest.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCapitalDayEvent(long dayIndex, LocalDate date, boolean catchUp, Stats endedDay) Creates the event. -
Method Summary
Modifier and TypeMethodDescriptionbooleancatchUp()Whether this boundary is being fired late after downtime.date()Calendar date of the day that is starting.longdayIndex()The day that is starting.endedDay()Final stats of the day that just ended, captured before the counters reset.static org.bukkit.event.HandlerListBukkit handler list.@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
CapitalDayEvent
Creates the event.
-
-
Method Details
-
dayIndex
public long dayIndex()The day that is starting. -
date
Calendar date of the day that is starting. -
catchUp
public boolean catchUp()Whether this boundary is being fired late after downtime. -
endedDay
Final stats of the day that just ended, captured before the counters reset. -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Bukkit handler list.
-