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
gray
dark-gray
red
pink
purple
blue
turquoise
green
yellow
orange
Method Signature (OreUi)
public void labeledDivider(int x, int y, int w, String label, OreAccent accent)
Parameters
| Parameter | Type | Description |
|---|---|---|
x, y | int | Top-left GUI pixel coordinates (14px total height). |
w | int | Total width of the divider line in GUI pixels. |
label | String | Text rendered inside the left OreAccent badge block. |
accent | OreAccent | Pastel accent color applied to both the label block and the 2px rule. |
Example
ui.labeledDivider(x, y, contentWidth, "REALMS", OreAccent.PURPLE);
y += 20;