FabricUiSessions

Client-thread ownership of native wrappers; every entry has one common retained host for its entire lifetime.

Functions

Link copied to clipboard

Passive overlays never synthesize pointer hover or consume gameplay input.

Link copied to clipboard
fun closeAll(reason: UiCloseReason)

Closes every owned UI before world/device teardown; each entry removes itself before cleanup.

Link copied to clipboard

Returns the native wrapper owned by one local presentation handle.

Link copied to clipboard
fun open(definition: UiDefinition, eventSession: UiSession? = null): UiSession

Opens a definition after validating the native thread, returning its stable event receiver.

Link copied to clipboard

Applies visibility and current viewport before either native HUD or ordinary-screen drawing.

Link copied to clipboard

Draws every HUD in its specified order, including the current interaction owner. Native Screen drawing skips HUD wrappers outside this scoped pass to avoid a second, reordered submission.

Link copied to clipboard

Releases game and UI input on native window focus loss.

Link copied to clipboard
fun tick()

Services world/container lifetime and ordinary-screen visibility on the client thread.

Link copied to clipboard

Returns visible HUDs in stable draw order, after vanilla HUD and before native screens.