FabricMinecraftScreen
Fabric client screen backed by one common Minecraft UI host.
The host is created by transferring the one-shot ScreenDefinition and is confined to the Minecraft client thread. Added and removed screen callbacks attach and detach the retained tree; removal is transient and never closes the screen. Terminal close releases the host and every transient dynamic texture layer. A caller that permanently abandons a removed or never-presented instance must close it on the client thread. The optional parent is retained for navigation but is never owned or closed. Rendering rasterizes portable command runs through the headless adapter and submits synchronized ItemStack commands through Minecraft's native GUI renderer at their exact display-list positions. Mouse coordinates are floored after finite and integer-range checks. Horizontal scroll is forwarded unchanged, while vertical scroll is negated to match the common increasing-y contract.
See also
Properties
Functions
Captures the last complete presentation from immutable CPU images and exact native-generation snapshots only.
Releases host and texture ownership exactly once. A close requested synchronously from a common frame or input callback is deferred until that operation exits on the same client thread. This method does not navigate; a displayed screen must be replaced by Minecraft or closed through onClose, while a later onClose may still perform its one parent-navigation attempt.
Reports whether this screen pauses the game according to its transferred definition.
Preserves Minecraft's screen-level Escape handling before delivering other key presses to the focused retained component and then inherited focus-navigation behavior.
Delivers a native key release to the focused retained component before inherited screen behavior.
Delivers a native mouse press to the common host.
Delivers native movement while a mouse button is held as one typed common drag event.
Delivers a finite mouse movement to the common host.
Delivers a native mouse release to the common host.
Renders one common frame at the logical GUI origin.
Cancels captured pointer, hover, and focus state after a native window/input reset.