MinecraftPlayerSkinBinding

Owner-thread retained binding for one asynchronously resolved player skin.

An adapter may complete network or cache work on any thread, but it publishes changed snapshots and invokes the sole observer only from MinecraftUiPlatform.refresh on the host owner thread. Closing is owner-thread confined and makes later queued completions inert.

Types

Link copied to clipboard
sealed interface Snapshot

Immutable frame-boundary skin lookup state.

Functions

Link copied to clipboard
abstract override fun close()

Releases this lookup and makes late asynchronous completions inert.

Link copied to clipboard
abstract fun observe(observer: () -> Unit): AutoCloseable

Installs the sole retained-node observer.

Link copied to clipboard

Returns the latest snapshot committed at a frame boundary.