Class GuiRichText
java.lang.Object
com.render.api.gui.GuiRichText
Logical UTF-16 text with immutable, non-overlapping typed style spans.
Paint-only span changes preserve native shaping when font, OpenType, spacing, and raster inputs agree. A shared ligature keeps its glyph and advance; fills, strokes, shadows, and decorations follow its grapheme paint intervals. The intervals use native ligature carets when available and evenly divided advances otherwise. A span boundary inside one grapheme uses the style at that grapheme's start.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordOne non-overlapping typed range. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiRichText.Builderbuilder()booleanstatic GuiRichTextfromComponent(net.minecraft.network.chat.Component component, GuiTextStyle baseStyle) Adapts Minecraft component spans into the same typed span model.inthashCode()static GuiRichTextof(String text, GuiTextStyle style) spans()styleAt(int utf16Offset) text()
-
Method Details
-
of
-
builder
-
fromComponent
public static GuiRichText fromComponent(net.minecraft.network.chat.Component component, GuiTextStyle baseStyle) Adapts Minecraft component spans into the same typed span model. -
text
-
spans
-
equals
-
hashCode
-
styleAt
-