VelocityUiProvider

Installed runtime boundary that queues operations on the dedicated UI thread.

Functions

Link copied to clipboard
abstract fun capabilities(player: Player): CompletableFuture<UiClientCapabilities?>

Returns detached negotiated support, or null while unavailable.

Link copied to clipboard
abstract fun <T> execute(ownerPlugin: Any, operation: () -> T): CompletableFuture<T>

Queues short state or session work without blocking an event thread.

Link copied to clipboard
abstract fun open(ownerPlugin: Any, player: Player, definition: () -> UiDefinition): CompletableFuture<UiSession>

Constructs a definition and its state on the UI thread before transferring ownership.

Link copied to clipboard
abstract fun register(ownerPlugin: Any, type: ProjectionType): CompletableFuture<Unit>

Registers a plugin-owned exact projection schema for subsequent negotiations.

Link copied to clipboard
abstract fun release(ownerPlugin: Any): CompletableFuture<Unit>

Closes a plugin's sessions and withdraws its projection schemas.