ModelScheduler

interface ModelScheduler

A scheduler of BetterModel

Functions

Link copied to clipboard
@NotNull
abstract fun asyncTask(@NotNull runnable: @NotNull Runnable): @NotNull ModelTask
Runs async task
Link copied to clipboard
@NotNull
abstract fun asyncTaskLater(delay: Long, @NotNull runnable: @NotNull Runnable): @NotNull ModelTask
Runs async task
Link copied to clipboard
@NotNull
abstract fun asyncTaskTimer(delay: Long, period: Long, @NotNull runnable: @NotNull Runnable): @NotNull ModelTask
Runs async task
Link copied to clipboard
@Nullable
open fun task(@NotNull entity: @NotNull BaseEntity, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
@Nullable
abstract fun task(@NotNull location: @NotNull Location, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
@Nullable
open fun task(@NotNull entity: @NotNull Entity, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Runs entity sync task
Link copied to clipboard
@Nullable
open fun taskLater(@NotNull entity: @NotNull BaseEntity, delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
@Nullable
abstract fun taskLater(@NotNull location: @NotNull Location, delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
@Nullable
open fun taskLater(@NotNull entity: @NotNull Entity, delay: Long, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask
Runs entity sync task