Uses of Interface
net.minecraft.text.StringVisitable
Package
Description
-
Uses of StringVisitable in net.minecraft.client.font
Modifier and TypeMethodDescriptionTextHandler.LineWrappingCollector.collectLine
(int lineLength, int skippedLength, Style style) TextHandler.LineWrappingCollector.collectRemainers()
TextHandler.trimToWidth
(StringVisitable text, int width, Style style) TextRenderer.trimToWidth
(StringVisitable text, int width) Trims a string to be at mostmaxWidth
wide.Modifier and TypeMethodDescriptionTextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style) TextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style, StringVisitable wrappedLinePrefix) Modifier and TypeMethodDescriptionstatic MultilineText
MultilineText.create
(TextRenderer renderer, StringVisitable text, int width) static MultilineText
MultilineText.create
(TextRenderer renderer, StringVisitable text, int width, int maxLines) void
TextRenderer.drawTrimmed
(StringVisitable text, int x, int y, int maxWidth, int color) TextHandler.getStyleAt
(StringVisitable text, int x) Returns the style at thex
position in a text.float
TextHandler.getWidth
(StringVisitable text) Returns the width of a text.int
TextRenderer.getWidth
(StringVisitable text) Gets the width of some text when rendered.int
TextRenderer.getWrappedLinesHeight
(StringVisitable text, int maxWidth) Returns the height of the text, after it has been wrapped, in pixels.static String
TextVisitFactory.removeFormattingCodes
(StringVisitable text) TextHandler.trimToWidth
(StringVisitable text, int width, Style style) TextRenderer.trimToWidth
(StringVisitable text, int width) Trims a string to be at mostmaxWidth
wide.static boolean
TextVisitFactory.visitFormatted
(StringVisitable text, Style style, CharacterVisitor visitor) Visits the code points for every literal string and the formatting codes supplied by the renderable.TextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style) void
TextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable, Boolean> lineConsumer) TextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style, StringVisitable wrappedLinePrefix) TextRenderer.wrapLines
(StringVisitable text, int width) Wraps text when the rendered width of text exceeds thewidth
.Modifier and TypeMethodDescriptionvoid
TextHandler.wrapLines
(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable, Boolean> lineConsumer) -
Uses of StringVisitable in net.minecraft.client.gui.screen
-
Uses of StringVisitable in net.minecraft.client.gui.screen.advancement
Modifier and TypeMethodDescriptionprivate List<StringVisitable>
AdvancementWidget.wrapDescription
(Text text, int width) Modifier and TypeMethodDescriptionprivate static float
AdvancementWidget.getMaxWidth
(TextHandler textHandler, List<StringVisitable> lines) -
Uses of StringVisitable in net.minecraft.client.gui.screen.ingame
Modifier and TypeMethodDescriptionEnchantingPhrases.generatePhrase
(TextRenderer textRenderer, int width) default StringVisitable
BookScreen.Contents.getPage
(int index) BookScreen.Contents.getPageUnchecked
(int index) BookScreen.WritableBookContents.getPageUnchecked
(int index) BookScreen.WrittenBookContents.getPageUnchecked
(int index) -
Uses of StringVisitable in net.minecraft.client.gui.screen.report
Modifier and TypeFieldDescriptionprivate final StringVisitable
ChatSelectionScreen.SelectionListWidget.MessageEntry.truncatedContent
-
Uses of StringVisitable in net.minecraft.client.resource.language
Modifier and TypeMethodDescriptionstatic TextReorderingProcessor
TextReorderingProcessor.create
(StringVisitable visitable) static TextReorderingProcessor
TextReorderingProcessor.create
(StringVisitable visitable, Int2IntFunction reverser, UnaryOperator<String> shaper) static OrderedText
ReorderingUtil.reorder
(StringVisitable text, boolean rightToLeft) TranslationStorage.reorder
(StringVisitable text) -
Uses of StringVisitable in net.minecraft.client.util
Modifier and TypeMethodDescriptionvoid
TextCollector.add
(StringVisitable text) static List<OrderedText>
ChatMessages.breakRenderedChatMessageLines
(StringVisitable message, int width, TextRenderer textRenderer) -
Uses of StringVisitable in net.minecraft.text
Modifier and TypeClassDescriptionclass
The text implementation, with mutation operations.Modifier and TypeFieldDescriptionstatic final StringVisitable
StringVisitable.EMPTY
An empty visitable that does not call the visitors.private static final StringVisitable
TranslatableTextContent.LITERAL_PERCENT_SIGN
private static final StringVisitable
TranslatableTextContent.NULL_ARGUMENT
Modifier and TypeFieldDescriptionprivate List<StringVisitable>
TranslatableTextContent.translations
Modifier and TypeMethodDescriptionstatic StringVisitable
StringVisitable.concat
(List<? extends StringVisitable> visitables) Concats multiple string visitables by the order they appear in the list.static StringVisitable
StringVisitable.concat
(StringVisitable[] visitables) Concats multiple string visitables by the order they appear in the array.private StringVisitable
TranslatableTextContent.getArg
(int index) static StringVisitable
Creates a visitable from a plain string.static StringVisitable
Creates a visitable from a plain string and a root style.Modifier and TypeMethodDescriptionstatic StringVisitable
StringVisitable.concat
(StringVisitable[] visitables) Concats multiple string visitables by the order they appear in the array.Modifier and TypeMethodDescriptionstatic StringVisitable
StringVisitable.concat
(List<? extends StringVisitable> visitables) Concats multiple string visitables by the order they appear in the list.private void
TranslatableTextContent.forEachPart
(String translation, Consumer<StringVisitable> partsConsumer) -
Uses of StringVisitable in net.minecraft.util