Class StargateRegionTask
java.lang.Object
org.sgrewritten.stargate.thread.task.StargateTask
org.sgrewritten.stargate.thread.task.StargateRegionTask
- All Implemented Interfaces:
Runnable
Runs task in a region (Folia) or in the main thread (paper)
-
Field Summary
Fields inherited from class org.sgrewritten.stargate.thread.task.StargateTask
USING_FOLIA
-
Constructor Summary
ModifierConstructorDescriptionprotected
StargateRegionTask
(org.bukkit.Location location) protected
StargateRegionTask
(org.bukkit.Location location, boolean bungee) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
runDelayed
(long delay) void
runNow()
void
runTaskTimer
(long period, long delay) static void
startPopulator
(org.bukkit.plugin.Plugin plugin) Methods inherited from class org.sgrewritten.stargate.thread.task.StargateTask
cancel, forceRunAllTasks, registerBukkitTask, registerFoliaTask, registerTask, runTask, runTask, setRepeatable
-
Constructor Details
-
StargateRegionTask
protected StargateRegionTask(org.bukkit.Location location, boolean bungee) -
StargateRegionTask
protected StargateRegionTask(org.bukkit.Location location)
-
-
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
-
startPopulator
public static void startPopulator(org.bukkit.plugin.Plugin plugin) -
clearPopulator
public static void clearPopulator()
-