runTask

abstract fun <T> runTask(task: Supplier<T>, loader: Any? = null): CompletableFuture<T>

Schedules a task to run on the game tick thread.

Parameters

task

Task that will be scheduled for the execution.

loader

Loader object identified with this task.


open fun <T> runTask(task: Supplier<T>): CompletableFuture<T>

Schedules a task to run on the game tick thread.

Parameters

task

Task that will be scheduled for the execution.