Loading
Docs / Components / Labeled Dividers
v1.0.0 JAVA MOD LIBRARY

Labeled Dividers

Full-width section separator combining an OreAccent label block with a matching 2px bottom rule.

ui.labeledDivider(...) separates groups of cards or settings using a 14px tall pastel badge block aligned to the bottom of a 2px horizontal rule (y + 12 to y + 14) spanning to x + w.

Interactive Preview

Method Signature (OreUi)

public void labeledDivider(int x, int y, int w, String label, OreAccent accent)

Parameters

ParameterTypeDescription
x, yintTop-left GUI pixel coordinates (14px total height).
wintTotal width of the divider line in GUI pixels.
labelStringText rendered inside the left OreAccent badge block.
accentOreAccentPastel accent color applied to both the label block and the 2px rule.

Example

ui.labeledDivider(x, y, contentWidth, "REALMS", OreAccent.PURPLE);
y += 20;