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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEntityThread
(org.bukkit.entity.Entity entity) boolean
boolean
isRegionThread
(org.bukkit.Location location) boolean
run
(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 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, 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:
isGlobalThread
in interfaceTaskScheduler
-
isTickThread
public boolean isTickThread()- Specified by:
isTickThread
in interfaceTaskScheduler
-
isEntityThread
public boolean isEntityThread(org.bukkit.entity.Entity entity) - Specified by:
isEntityThread
in interfaceTaskScheduler
-
isRegionThread
public boolean isRegionThread(org.bukkit.Location location) - Specified by:
isRegionThread
in interfaceTaskScheduler
-
run
- Specified by:
run
in interfaceTaskScheduler
-
runLater
- Specified by:
runLater
in interfaceTaskScheduler
-
runRepeating
- Specified by:
runRepeating
in interfaceTaskScheduler
-
runAsync
- Specified by:
runAsync
in interfaceTaskScheduler
-
runAsyncLater
- Specified by:
runAsyncLater
in interfaceTaskScheduler
-
runAsyncRepeating
public ScheduledTask runAsyncRepeating(Consumer<ScheduledTask> task, long delay, long period, TimeUnit timeUnit) - Specified by:
runAsyncRepeating
in interfaceTaskScheduler
-