Class GuiRichText
java.lang.Object
com.render.api.gui.GuiRichText
Logical UTF-16 text with immutable, non-overlapping typed style spans.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordOne non-overlapping typed range. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiRichText.Builderbuilder()static GuiRichTextfromComponent(net.minecraft.network.chat.Component component, GuiTextStyle baseStyle) Adapts Minecraft component spans into the same typed span model.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
-
styleAt
-