Interface TaskScheduler
- All Known Implementing Classes:
BukkitTaskScheduler
,FoliaTaskScheduler
,PaperTaskScheduler
@DefaultQualifier(org.jetbrains.annotations.NotNull.class)
public interface TaskScheduler
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isEntityThread
(org.bukkit.entity.Entity entity) boolean
boolean
isRegionThread
(org.bukkit.Location location) boolean
default ScheduledTask
run
(Consumer<ScheduledTask> task) default ScheduledTask
default ScheduledTask
run
(org.bukkit.entity.Entity entity, Consumer<ScheduledTask> task) default ScheduledTask
default ScheduledTask
run
(org.bukkit.Location location, Consumer<ScheduledTask> task) default ScheduledTask
runAsync
(Consumer<ScheduledTask> task) default ScheduledTask
runAsyncLater
(Runnable runnable, long delay) runAsyncLater
(Consumer<ScheduledTask> task, long delay, TimeUnit timeUnit) default ScheduledTask
runAsyncRepeating
(Runnable runnable, long delay, long period) runAsyncRepeating
(Consumer<ScheduledTask> task, long delay, long period, TimeUnit timeUnit) default ScheduledTask
runGlobal
(Consumer<ScheduledTask> task) default ScheduledTask
runGlobalLater
(Consumer<ScheduledTask> task, long delay) default ScheduledTask
runGlobalRepeating
(Consumer<ScheduledTask> task, long delay, long period) default ScheduledTask
runLater
(Consumer<ScheduledTask> task, long delay) default ScheduledTask
default ScheduledTask
runLater
(org.bukkit.entity.Entity entity, Consumer<ScheduledTask> task, long delay) default ScheduledTask
default ScheduledTask
runLater
(org.bukkit.Location location, Consumer<ScheduledTask> task, long delay) default ScheduledTask
runRepeating
(Runnable runnable, long delay, long period) runRepeating
(Consumer<ScheduledTask> task, long delay, long period) default ScheduledTask
runRepeating
(org.bukkit.entity.Entity entity, Runnable runnable, long delay, long period) default ScheduledTask
runRepeating
(org.bukkit.entity.Entity entity, Consumer<ScheduledTask> task, long delay, long period) default ScheduledTask
runRepeating
(org.bukkit.Location location, Runnable runnable, long delay, long period) default ScheduledTask
runRepeating
(org.bukkit.Location location, Consumer<ScheduledTask> task, long delay, long period)
-
Method Details
-
isGlobalThread
boolean isGlobalThread() -
isTickThread
boolean isTickThread() -
isEntityThread
boolean isEntityThread(org.bukkit.entity.Entity entity) -
isRegionThread
boolean isRegionThread(org.bukkit.Location location) -
run
-
run
-
run
-
runLater
-
runLater
default ScheduledTask runLater(org.bukkit.entity.Entity entity, Consumer<ScheduledTask> task, long delay) -
runLater
default ScheduledTask runLater(org.bukkit.Location location, Consumer<ScheduledTask> task, long delay) -
runRepeating
-
runRepeating
default ScheduledTask runRepeating(org.bukkit.entity.Entity entity, Consumer<ScheduledTask> task, long delay, long period) -
runRepeating
default ScheduledTask runRepeating(org.bukkit.Location location, Consumer<ScheduledTask> task, long delay, long period) -
runAsync
-
runAsyncLater
-
runAsyncRepeating
ScheduledTask runAsyncRepeating(Consumer<ScheduledTask> task, long delay, long period, TimeUnit timeUnit) -
runGlobal
-
runGlobalLater
-
runGlobalRepeating
@Experimental default ScheduledTask runGlobalRepeating(Consumer<ScheduledTask> task, long delay, long period) -
run
-
run
-
run
-
runLater
-
runLater
-
runLater
-
runRepeating
-
runRepeating
default ScheduledTask runRepeating(org.bukkit.entity.Entity entity, Runnable runnable, long delay, long period) -
runRepeating
default ScheduledTask runRepeating(org.bukkit.Location location, Runnable runnable, long delay, long period) -
runAsync
-
runAsyncLater
-
runAsyncRepeating
-