Uses of Interface
net.minecraft.text.StringVisitable
Packages that use StringVisitable
Package
Description
Contains utility method classes, various enums, serialization helpers, and
miscellaneous classes.
-
Uses of StringVisitable in net.minecraft.client.font
Classes in net.minecraft.client.font that implement StringVisitableMethods in net.minecraft.client.font that return StringVisitableModifier and TypeMethodDescriptionTextHandler.LineWrappingCollector.collectLine(int lineLength, int skippedLength, Style style) TextHandler.LineWrappingCollector.collectRemainders()TextHandler.trimToWidth(StringVisitable text, int width, Style style) TextRenderer.trimToWidth(StringVisitable text, int width) Trims a string to be at mostmaxWidthwide.Methods in net.minecraft.client.font that return types with arguments of type StringVisitableModifier and TypeMethodDescriptionTextHandler.wrapLines(StringVisitable text, int maxWidth, Style style) TextHandler.wrapLines(StringVisitable text, int maxWidth, Style style, StringVisitable wrappedLinePrefix) Methods in net.minecraft.client.font with parameters of type StringVisitableModifier and TypeMethodDescriptionTextHandler.getStyleAt(StringVisitable text, int x) Returns the style at thexposition in a text.floatTextHandler.getWidth(StringVisitable text) Returns the width of a text.intTextRenderer.getWidth(StringVisitable text) Gets the width of some text when rendered.intTextRenderer.getWrappedLinesHeight(StringVisitable text, int maxWidth) Returns the height of the text, after it has been wrapped, in pixels.TextHandler.trimToWidth(StringVisitable text, int width, Style style) TextRenderer.trimToWidth(StringVisitable text, int width) Trims a string to be at mostmaxWidthwide.TextHandler.wrapLines(StringVisitable text, int maxWidth, Style style) voidTextHandler.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.Method parameters in net.minecraft.client.font with type arguments of type StringVisitableModifier and TypeMethodDescriptionvoidTextHandler.wrapLines(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable, Boolean> lineConsumer) -
Uses of StringVisitable in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type StringVisitableModifier and TypeMethodDescriptionvoidDrawContext.drawTextWrapped(TextRenderer textRenderer, StringVisitable text, int x, int y, int width, int color) -
Uses of StringVisitable in net.minecraft.client.gui.screen.advancement
Methods in net.minecraft.client.gui.screen.advancement that return types with arguments of type StringVisitableModifier and TypeMethodDescriptionprivate List<StringVisitable> AdvancementWidget.wrapDescription(Text text, int width) Method parameters in net.minecraft.client.gui.screen.advancement with type arguments of type StringVisitableModifier and TypeMethodDescriptionprivate static floatAdvancementWidget.getMaxWidth(TextHandler textHandler, List<StringVisitable> lines) -
Uses of StringVisitable in net.minecraft.client.gui.screen.ingame
Methods in net.minecraft.client.gui.screen.ingame that return StringVisitableModifier and TypeMethodDescriptionEnchantingPhrases.generatePhrase(TextRenderer textRenderer, int width) BookScreen.Contents.getPage(int index) -
Uses of StringVisitable in net.minecraft.client.gui.screen.report
Fields in net.minecraft.client.gui.screen.report declared as StringVisitableModifier and TypeFieldDescriptionprivate final StringVisitableChatSelectionScreen.SelectionListWidget.MessageEntry.truncatedContent -
Uses of StringVisitable in net.minecraft.client.resource.language
Methods in net.minecraft.client.resource.language with parameters of type StringVisitableModifier and TypeMethodDescriptionstatic OrderedTextReorderingUtil.reorder(StringVisitable text, boolean rightToLeft) TranslationStorage.reorder(StringVisitable text) -
Uses of StringVisitable in net.minecraft.client.util
Fields in net.minecraft.client.util with type parameters of type StringVisitableMethods in net.minecraft.client.util that return StringVisitableMethods in net.minecraft.client.util with parameters of type StringVisitableModifier and TypeMethodDescriptionvoidTextCollector.add(StringVisitable text) static List<OrderedText> ChatMessages.breakRenderedChatMessageLines(StringVisitable message, int width, TextRenderer textRenderer) -
Uses of StringVisitable in net.minecraft.text
Subinterfaces of StringVisitable in net.minecraft.textClasses in net.minecraft.text that implement StringVisitableModifier and TypeClassDescriptionclassThe text implementation, with mutation operations.Fields in net.minecraft.text declared as StringVisitableModifier and TypeFieldDescriptionstatic final StringVisitableStringVisitable.EMPTYAn empty visitable that does not call the visitors.private static final StringVisitableTranslatableTextContent.LITERAL_PERCENT_SIGNprivate static final StringVisitableTranslatableTextContent.NULL_ARGUMENTFields in net.minecraft.text with type parameters of type StringVisitableModifier and TypeFieldDescriptionprivate List<StringVisitable> TranslatableTextContent.translationsMethods in net.minecraft.text that return StringVisitableModifier and TypeMethodDescriptionstatic StringVisitableStringVisitable.concat(List<? extends StringVisitable> visitables) Concats multiple string visitables by the order they appear in the list.static StringVisitableStringVisitable.concat(StringVisitable[] visitables) Concats multiple string visitables by the order they appear in the array.private StringVisitableTranslatableTextContent.getArg(int index) static StringVisitableCreates a visitable from a plain string.static StringVisitableCreates a visitable from a plain string and a root style.Methods in net.minecraft.text with parameters of type StringVisitableModifier and TypeMethodDescriptionstatic StringVisitableStringVisitable.concat(StringVisitable[] visitables) Concats multiple string visitables by the order they appear in the array.static TextReorderingProcessorTextReorderingProcessor.create(StringVisitable visitable) static TextReorderingProcessorTextReorderingProcessor.create(StringVisitable visitable, Int2IntFunction reverser, UnaryOperator<String> shaper) static StringTextVisitFactory.removeFormattingCodes(StringVisitable text) static booleanTextVisitFactory.visitFormatted(StringVisitable text, Style style, CharacterVisitor visitor) Visits the code points for every literal string and the formatting codes supplied by the renderable.Method parameters in net.minecraft.text with type arguments of type StringVisitableModifier and TypeMethodDescriptionstatic StringVisitableStringVisitable.concat(List<? extends StringVisitable> visitables) Concats multiple string visitables by the order they appear in the list.private voidTranslatableTextContent.forEachPart(String translation, Consumer<StringVisitable> partsConsumer) -
Uses of StringVisitable in net.minecraft.util
Methods in net.minecraft.util with parameters of type StringVisitableMethod parameters in net.minecraft.util with type arguments of type StringVisitable