Class AbstractController

java.lang.Object
su.nightexpress.excellentclaims.api.core.AbstractController
All Implemented Interfaces:
org.bukkit.event.Listener, LifecycleComponent, NightController

@NullMarked public abstract class AbstractController extends Object implements NightController, org.bukkit.event.Listener
  • Field Details

    • plugin

      protected final su.nightexpress.nightcore.NightCorePlugin plugin
    • tasks

      protected final List<su.nightexpress.nightcore.util.bukkit.NightTask> tasks
  • Constructor Details

    • AbstractController

      public AbstractController(su.nightexpress.nightcore.NightCorePlugin plugin)
  • Method Details

    • onStart

      protected abstract void onStart()
    • onShutdown

      protected abstract void onShutdown()
    • onReload

      protected abstract void onReload()
    • start

      public void start()
      Specified by:
      start in interface LifecycleComponent
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface LifecycleComponent
    • reload

      public void reload()
      Specified by:
      reload in interface LifecycleComponent
    • stopTasks

      public void stopTasks()
    • addSecondsTask

      protected void addSecondsTask(Runnable runnable, int interval)
    • addTickTask

      protected void addTickTask(Runnable runnable, long interval)
    • addAsyncSecondsTask

      protected void addAsyncSecondsTask(Runnable runnable, int interval)
    • addAsyncTickTask

      protected void addAsyncTickTask(Runnable runnable, long interval)
    • addTask

      protected void addTask(su.nightexpress.nightcore.util.bukkit.NightTask task)