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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAsyncSecondsTask(Runnable runnable, int interval) protected voidaddAsyncTickTask(Runnable runnable, long interval) protected voidaddSecondsTask(Runnable runnable, int interval) protected voidaddTask(su.nightexpress.nightcore.util.bukkit.NightTask task) protected voidaddTickTask(Runnable runnable, long interval) protected abstract voidonReload()protected abstract voidprotected abstract voidonStart()voidreload()voidshutdown()voidstart()void
-
Field Details
-
plugin
protected final su.nightexpress.nightcore.NightCorePlugin plugin -
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:
startin interfaceLifecycleComponent
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceLifecycleComponent
-
reload
public void reload()- Specified by:
reloadin interfaceLifecycleComponent
-
stopTasks
public void stopTasks() -
addSecondsTask
-
addTickTask
-
addAsyncSecondsTask
-
addAsyncTickTask
-
addTask
protected void addTask(su.nightexpress.nightcore.util.bukkit.NightTask task)
-