Class FoliaAsyncScheduler
java.lang.Object
be.seeseemelk.mockbukkit.scheduler.paper.FoliaAsyncScheduler
- All Implemented Interfaces:
AsyncScheduler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelTasks(@NotNull Plugin plugin) @NotNull ScheduledTaskrunAtFixedRate(@NotNull Plugin plugin, @NotNull Consumer<ScheduledTask> task, long initialDelay, long period, @NotNull TimeUnit unit) @NotNull ScheduledTaskrunDelayed(@NotNull Plugin plugin, @NotNull Consumer<ScheduledTask> task, long delay, @NotNull TimeUnit unit) @NotNull ScheduledTaskrunNow(@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:
runNowin interfaceAsyncScheduler
-
runDelayed
@NotNull public @NotNull ScheduledTask runDelayed(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Consumer<ScheduledTask> task, long delay, @NotNull @NotNull TimeUnit unit) - Specified by:
runDelayedin 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:
runAtFixedRatein interfaceAsyncScheduler
-
cancelTasks
- Specified by:
cancelTasksin interfaceAsyncScheduler
-