renderBackground

open override fun renderBackground(graphics: GuiGraphics, mouseX: Int, mouseY: Int, partialTick: Float)(source)

Renders one common frame at the logical GUI origin.

Geometry is committed first, and a native pointer move is delivered only when its position or the committed display list changed. A second frame captures resulting hover state only after that dispatch. A zero-axis viewport still commits geometry and releases any prior texture without submitting a native blit.

Parameters

graphics

the native GUI rendering target.

mouseX

the current native mouse x coordinate.

mouseY

the current native mouse y coordinate.

partialTick

the current native frame fraction.

Throws

when common frame work, headless rasterization, texture upload, or terminal cleanup fails.

when invoked away from the Minecraft client thread.