Uses of Interface
net.minecraft.text.StringVisitable
Packages that use StringVisitable
Package
Description
-
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.collectRemainers()
TextHandler.trimToWidth(StringVisitable text, int width, Style style)
TextRenderer.trimToWidth(StringVisitable text, int width)
Trims a string to be at mostmaxWidth
wide.Methods in net.minecraft.client.font that return types with arguments of type StringVisitableModifier and TypeMethodDescriptionTextHandler.method_35714(StringVisitable stringVisitable, int maxWidth, Style style, StringVisitable stringVisitable2)
TextHandler.wrapLines(StringVisitable text, int maxWidth, Style style)
Methods in net.minecraft.client.font with parameters of type StringVisitableModifier 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)
Gets 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.TextHandler.method_35714(StringVisitable stringVisitable, int maxWidth, Style style, StringVisitable stringVisitable2)
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> biConsumer)
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 TypeMethodDescriptionvoid
TextHandler.wrapLines(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable,Boolean> biConsumer)
-
Uses of StringVisitable in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as StringVisitableModifier and TypeFieldDescriptionprivate static StringVisitable
CreditsScreen.field_33955
private StringVisitable
DialogScreen.message
Methods in net.minecraft.client.gui.screen with parameters of type StringVisitableModifier and TypeMethodDescriptionprivate void
CreditsScreen.method_37304(StringVisitable stringVisitable, boolean bool)
-
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 float
AdvancementWidget.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 fontRenderer, 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.resource.language
Methods in net.minecraft.client.resource.language with parameters of type StringVisitableModifier and TypeMethodDescriptionstatic TextReorderingProcessor
TextReorderingProcessor.create(StringVisitable visitable)
static TextReorderingProcessor
TextReorderingProcessor.create(StringVisitable visitable, Int2IntFunction reverser, UnaryOperator<String> unaryOperator)
static OrderedText
ReorderingUtil.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 TypeMethodDescriptionvoid
TextCollector.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.textModifier and TypeInterfaceDescriptioninterface
A text with mutation operations.interface
A text.Classes in net.minecraft.text that implement StringVisitableModifier and TypeClassDescriptionclass
class
class
class
static class
static class
static class
class
class
class
Fields in net.minecraft.text declared as StringVisitableModifier and TypeFieldDescriptionstatic StringVisitable
StringVisitable.EMPTY
An empty visitable that does not call the visitors.private static StringVisitable
TranslatableText.LITERAL_PERCENT_SIGN
private static StringVisitable
TranslatableText.NULL_ARGUMENT
Fields in net.minecraft.text with type parameters of type StringVisitableMethods in net.minecraft.text that return StringVisitableModifier 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
TranslatableText.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.Methods in net.minecraft.text with parameters of type StringVisitableModifier and TypeMethodDescriptionstatic StringVisitable
StringVisitable.concat(StringVisitable[] visitables)
Concats multiple string visitables by the order they appear in the array.Method parameters in net.minecraft.text with type arguments of type StringVisitableModifier and TypeMethodDescriptionstatic StringVisitable
StringVisitable.concat(List<? extends StringVisitable> visitables)
Concats multiple string visitables by the order they appear in the list. -
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