createMinecraftUiHost

Creates one owner-thread host by atomically consuming a definition.

Successful construction leaves the definition empty and transfers metadata and content to the new host.

Return

a distinct owner-thread host.

Parameters

definition

the available one-shot definition.

profile

the complete immutable Minecraft asset profile.

Throws

when definition was already transferred or closed.


Creates one owner-thread host with version-specific services by atomically consuming a definition.

Successful construction transfers platform to the host, which refreshes it before frames and closes it on every terminal path. This privileged overload is for a versioned runtime adapter; application code receives the resulting screen from that adapter instead.

Return

a distinct owner-thread host.

Parameters

definition

the available one-shot definition.

profile

the complete immutable Minecraft asset profile.

platform

version-specific services transferred to the host.

Throws

when definition was already transferred or closed.

when construction fails; platform remains caller-owned unless transfer completes.