Class StargateEntityTask
java.lang.Object
org.sgrewritten.stargate.thread.task.StargateTask
org.sgrewritten.stargate.thread.task.StargateEntityTask
- All Implemented Interfaces:
Runnable
Runs task on an entity 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) Methods inherited from class org.sgrewritten.stargate.thread.task.StargateTask
cancel, forceRunAllTasks, registerBukkitTask, registerFoliaTask, registerTask, runTask, runTask, setRepeatable
-
Constructor Details
-
StargateEntityTask
protected StargateEntityTask(org.bukkit.entity.Entity entity)
-
-
Method Details
-
runNow
public void runNow()- Specified by:
runNow
in classStargateTask
-
runDelayed
public void runDelayed(long delay) - Specified by:
runDelayed
in classStargateTask
-
runTaskTimer
public void runTaskTimer(long period, long delay) - Specified by:
runTaskTimer
in classStargateTask
-