Class BukkitTaskScheduler
java.lang.Object
com.palmergames.bukkit.towny.scheduling.impl.BukkitTaskScheduler
- All Implemented Interfaces:
TaskScheduler
@DefaultQualifier(org.jetbrains.annotations.NotNull.class)
public class BukkitTaskScheduler
extends Object
implements TaskScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEntityThread(org.bukkit.entity.Entity entity) booleanbooleanisRegionThread(org.bukkit.Location location) booleanrun(Consumer<ScheduledTask> task) runAsync(Consumer<ScheduledTask> task) runAsyncLater(Consumer<ScheduledTask> task, long delay, TimeUnit timeUnit) runAsyncRepeating(Consumer<ScheduledTask> task, long delay, long period, TimeUnit timeUnit) runLater(Consumer<ScheduledTask> task, long delay) runRepeating(Consumer<ScheduledTask> task, long delay, long period) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TaskScheduler
run, run, run, run, run, runAsync, runAsyncLater, runAsyncRepeating, runGlobal, runGlobalLater, runGlobalRepeating, runLater, runLater, runLater, runLater, runLater, runRepeating, runRepeating, runRepeating, runRepeating, runRepeating
-
Constructor Details
-
BukkitTaskScheduler
public BukkitTaskScheduler(org.bukkit.plugin.Plugin plugin)
-
-
Method Details
-
isGlobalThread
public boolean isGlobalThread()- Specified by:
isGlobalThreadin interfaceTaskScheduler
-
isTickThread
public boolean isTickThread()- Specified by:
isTickThreadin interfaceTaskScheduler
-
isEntityThread
public boolean isEntityThread(org.bukkit.entity.Entity entity) - Specified by:
isEntityThreadin interfaceTaskScheduler
-
isRegionThread
public boolean isRegionThread(org.bukkit.Location location) - Specified by:
isRegionThreadin interfaceTaskScheduler
-
run
- Specified by:
runin interfaceTaskScheduler
-
runLater
- Specified by:
runLaterin interfaceTaskScheduler
-
runRepeating
- Specified by:
runRepeatingin interfaceTaskScheduler
-
runAsync
- Specified by:
runAsyncin interfaceTaskScheduler
-
runAsyncLater
- Specified by:
runAsyncLaterin interfaceTaskScheduler
-
runAsyncRepeating
public ScheduledTask runAsyncRepeating(Consumer<ScheduledTask> task, long delay, long period, TimeUnit timeUnit) - Specified by:
runAsyncRepeatingin interfaceTaskScheduler
-