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

    Constructors
    Constructor
    Description
    CapitalDayEvent(long dayIndex, LocalDate date, boolean catchUp, Stats endedDay)
    Creates the event.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this boundary is being fired late after downtime.
    Calendar date of the day that is starting.
    long
    The day that is starting.
    Final stats of the day that just ended, captured before the counters reset.
    static org.bukkit.event.HandlerList
    Bukkit handler list.
    @NotNull org.bukkit.event.HandlerList
     

    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

    • CapitalDayEvent

      public CapitalDayEvent(long dayIndex, LocalDate date, boolean catchUp, Stats endedDay)
      Creates the event.
  • Method Details

    • dayIndex

      public long dayIndex()
      The day that is starting.
    • date

      public LocalDate date()
      Calendar date of the day that is starting.
    • catchUp

      public boolean catchUp()
      Whether this boundary is being fired late after downtime.
    • endedDay

      public Stats 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:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Bukkit handler list.