task

@Nullable
abstract fun task(@NotNull location: @NotNull Location, @NotNull runnable: @NotNull Runnable): @Nullable ModelTask

Schedules a task to run on the next tick, synchronized with the given location.

Return

the scheduled task, or null if scheduling failed

Since

2.0.0

Parameters

location

the location to synchronize with

runnable

the task to run