SimpleReloadListener

interface SimpleReloadListener : PreparableReloadListener

A PreparableReloadListener with a simplified async reload entry point.

Minecraft's reload signature is verbose and its preparationBarrier is only meaningful while wired into the reload pipeline, so this interface additionally exposes a plain reload taking just the executor pair. The barrier-aware overload adapts it: it waits on PreparableReloadListener.PreparationBarrier.wait before delegating to the simplified one.

Inheritors

Types

Link copied to clipboard

A SimpleReloadListener that reloads its children in parallel and reports completion through onFinished once all of them have finished.

Properties

Link copied to clipboard
open val name: String?

Functions

Link copied to clipboard
open fun prepareSharedState(currentReload: PreparableReloadListener.SharedState?)
Link copied to clipboard
abstract fun reload(taskExecutor: Executor = Util.backgroundExecutor(), reloadExecutor: Executor = mc): CompletableFuture<Void>

Reloads this listener asynchronously.

open override fun reload(currentReload: PreparableReloadListener.SharedState, taskExecutor: Executor, preparationBarrier: PreparableReloadListener.PreparationBarrier, reloadExecutor: Executor): CompletableFuture<Void>