FabricMinecraftCanvasHooks

Connects native GUI consumption and device lifetime on the client/render thread without owning screen or resource references. A native operation's original failure remains primary when independent Canvas cleanup also fails.

Functions

Link copied to clipboard

Polls native completion independently of the active screen without fencing extraction or blocking.

Link copied to clipboard

Acknowledges native GUI consumption and attempts independent cleanup after an original or acknowledgement failure.

Link copied to clipboard

Permanently prevents new attachments before closing remote and shared sessions, including when later cleanup fails.

Link copied to clipboard
fun closeActiveScreen(client: Minecraft)

Borrows and terminally closes the active Strata screen before native context or window teardown.

Link copied to clipboard

Rejects off-render-thread or terminal reentrant attachment before retained input and sources are attached.

Link copied to clipboard
fun resetActiveInput(client: Minecraft)

Cancels retained input after committed native focus loss, except after terminal shutdown begins.