FabricMinecraftCanvasHooks

Version-owned native consumption and device-lifetime bridge.

Every call runs on the client/render thread. This helper owns no screen, command list, or resource. The wrapped native operation remains primary if independent canvas cleanup also fails.

Functions

Link copied to clipboard
open fun afterFrame(primary: Throwable)
Polls completion independently of the active screen without fencing extraction or blocking.
Link copied to clipboard
open fun afterGui(primary: Throwable)
Records consumption only at the version-owned native GUI-consumption boundary.
Link copied to clipboard
open fun beginShutdown()
Permanently prevents new Strata screen attachments before any terminal screen cleanup callback runs.
Link copied to clipboard
open fun closeActiveScreen(client: Minecraft)
Stops the current Strata screen before native device or window teardown without retaining it.
Link copied to clipboard
open fun requireRunning()
Rejects reentrant new screen attachment after terminal client shutdown has begun.
Link copied to clipboard
open fun resetActiveInput(client: Minecraft)
Cancels retained input after the native window has committed loss of focus.