Class StargateGlobalTask
java.lang.Object
org.sgrewritten.stargate.thread.task.StargateTask
org.sgrewritten.stargate.thread.task.StargateGlobalTask
- All Implemented Interfaces:
Runnable
Runs task on the global thread (Folia) or on the main thread (paper)
-
Field Summary
Fields inherited from class org.sgrewritten.stargate.thread.task.StargateTask
USING_FOLIA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runDelayed
(long delay) void
runNow()
void
runTaskTimer
(long period, long delay) void
runTaskTimer
(long period, long delay, Runnable runnable) Methods inherited from class org.sgrewritten.stargate.thread.task.StargateTask
cancel, forceRunAllTasks, registerBukkitTask, registerFoliaTask, registerTask, runTask, runTask, setRepeatable
-
Constructor Details
-
StargateGlobalTask
protected StargateGlobalTask() -
StargateGlobalTask
protected StargateGlobalTask(boolean bungee)
-
-
Method Details
-
runDelayed
public void runDelayed(long delay) - Specified by:
runDelayed
in classStargateTask
-
runNow
public void runNow()- Specified by:
runNow
in classStargateTask
-
runTaskTimer
-
runTaskTimer
public void runTaskTimer(long period, long delay) - Specified by:
runTaskTimer
in classStargateTask
-