Class FoliaAsyncScheduler
java.lang.Object
be.seeseemelk.mockbukkit.scheduler.paper.FoliaAsyncScheduler
- All Implemented Interfaces:
AsyncScheduler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelTasks
(@NotNull Plugin plugin) @NotNull ScheduledTask
runAtFixedRate
(@NotNull Plugin plugin, @NotNull Consumer<ScheduledTask> task, long initialDelay, long period, @NotNull TimeUnit unit) @NotNull ScheduledTask
runDelayed
(@NotNull Plugin plugin, @NotNull Consumer<ScheduledTask> task, long delay, @NotNull TimeUnit unit) @NotNull ScheduledTask
runNow
(@NotNull Plugin plugin, @NotNull Consumer<ScheduledTask> task)
-
Constructor Details
-
FoliaAsyncScheduler
-
-
Method Details
-
runNow
@NotNull public @NotNull ScheduledTask runNow(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Consumer<ScheduledTask> task) - Specified by:
runNow
in interfaceAsyncScheduler
-
runDelayed
@NotNull public @NotNull ScheduledTask runDelayed(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Consumer<ScheduledTask> task, long delay, @NotNull @NotNull TimeUnit unit) - Specified by:
runDelayed
in interfaceAsyncScheduler
-
runAtFixedRate
@NotNull public @NotNull ScheduledTask runAtFixedRate(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Consumer<ScheduledTask> task, long initialDelay, long period, @NotNull @NotNull TimeUnit unit) - Specified by:
runAtFixedRate
in interfaceAsyncScheduler
-
cancelTasks
- Specified by:
cancelTasks
in interfaceAsyncScheduler
-