Package me.hackware.api.gui.layout
Class UIRenderer
java.lang.Object
me.hackware.api.gui.layout.UIRenderer
Entry point for measuring, laying out, and rendering a UI element tree.
Handles resolving the root element's absolute position within the viewport.
-
Method Summary
-
Method Details
-
render
public static void render(UIElement<?> root, net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.gui.Font font, int viewportWidth, int viewportHeight) Measure, lay out, and render a UI tree within the given viewport.- Parameters:
root- The root element of the UI treegraphics- Minecraft's GuiGraphics contextfont- The font to use for text measurement and renderingviewportWidth- Screen width in pixelsviewportHeight- Screen height in pixels
-