McServerScheduler

Functions

Link copied to clipboard
open fun <T> runTask(task: Supplier<T>): CompletableFuture<T>
abstract fun <T> runTask(task: Supplier<T>, loader: Any? = null): CompletableFuture<T>

Schedules a task to run on the game tick thread.

Link copied to clipboard
open fun <T> runTaskAt(location: ServerPos3d, task: Supplier<T>): CompletableFuture<T>
abstract fun <T> runTaskAt(location: ServerPos3d, task: Supplier<T>, loader: Any? = null): CompletableFuture<T>

Schedules a task to run on the game tick thread at a given location.

Link copied to clipboard
open fun <T> runTaskFor(entity: McServerEntity, task: Supplier<T>): CompletableFuture<T>
abstract fun <T> runTaskFor(entity: McServerEntity, task: Supplier<T>, loader: Any? = null): CompletableFuture<T>

Schedules a task to run on the game tick thread for a given entity.