Class PaperTaskScheduler
java.lang.Object
com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler
com.palmergames.bukkit.towny.scheduling.impl.PaperTaskScheduler
- All Implemented Interfaces:
TaskScheduler
@DefaultQualifier(org.jetbrains.annotations.NotNull.class)
public class PaperTaskScheduler
extends FoliaTaskScheduler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(Consumer<ScheduledTask> task) runLater
(Consumer<ScheduledTask> task, long delay) runRepeating
(Consumer<ScheduledTask> task, long delay, long period) Methods inherited from class com.palmergames.bukkit.towny.scheduling.impl.FoliaTaskScheduler
cancelTasks, isEntityThread, isRegionThread, isTickThread, run, run, runAsync, runAsyncLater, runAsyncRepeating, runGlobal, runGlobalLater, runGlobalRepeating, runLater, runLater, runRepeating, runRepeating
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.palmergames.bukkit.towny.scheduling.TaskScheduler
run, run, run, runAsync, runAsyncLater, runAsyncRepeating, runLater, runLater, runLater, runRepeating, runRepeating, runRepeating
-
Constructor Details
-
PaperTaskScheduler
public PaperTaskScheduler(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
isGlobalThread
public boolean isGlobalThread()- Specified by:
isGlobalThread
in interfaceTaskScheduler
- Overrides:
isGlobalThread
in classFoliaTaskScheduler
-
run
- Specified by:
run
in interfaceTaskScheduler
- Overrides:
run
in classFoliaTaskScheduler
-
runLater
- Specified by:
runLater
in interfaceTaskScheduler
- Overrides:
runLater
in classFoliaTaskScheduler
-
runRepeating
- Specified by:
runRepeating
in interfaceTaskScheduler
- Overrides:
runRepeating
in classFoliaTaskScheduler
-