MinecraftUiPlatform

Owner-thread platform services used by Minecraft-backed components without exposing version-specific game types.

One host owns the platform from successful construction through terminal close. The host may memoize an admitted successful image result for each identifier; a new platform and host are required to expose resource-pack replacements reliably. The platform may lend stable bindings to retained nodes, but close releases every observer, item snapshot, callback, and native reference.

Functions

Link copied to clipboard
abstract override fun close()

Permanently releases platform bindings and native references on the owner thread.

Link copied to clipboard
abstract fun image(resource: ResourceId): DrawImage

Resolves one resource-pack image through the active resource manager.

Link copied to clipboard

Returns the stable retained-node binding for one declarative Slot locator.

Link copied to clipboard

Starts one player-skin lookup owned by the returned binding.

Link copied to clipboard
abstract fun refresh()

Polls current game state and synchronously notifies bindings whose immutable item snapshots changed.