ModModelScheduler

Represents a Mod-specific scheduler for model tasks.

This interface extends ModelScheduler to provide methods for scheduling tasks within the Mod environment.

Since

2.0.0

Functions

Link copied to clipboard
abstract fun asyncTask(p: @NotNull Runnable): @NotNull ModelTask
Link copied to clipboard
abstract fun asyncTaskLater(p: Long, p1: @NotNull Runnable): @NotNull ModelTask
Link copied to clipboard
abstract fun asyncTaskTimer(p: Long, p1: Long, p2: @NotNull Runnable): @NotNull ModelTask
Link copied to clipboard
@Nullable
abstract fun task(@NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run on the next tick.
Link copied to clipboard
@Nullable
abstract fun taskLater(delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Schedules a task to run after a delay.