Uses of Interface
net.minecraft.text.StringVisitable
-
Uses of StringVisitable in net.minecraft.client.font
Classes in net.minecraft.client.font that implement StringVisitable Modifier and Type Class Description (package private) static classTextHandler.StyledStringMethods in net.minecraft.client.font that return StringVisitable Modifier and Type Method Description StringVisitableTextHandler.LineWrappingCollector. collectLine(int lineLength, int skippedLength, Style style)@Nullable StringVisitableTextHandler.LineWrappingCollector. collectRemainers()StringVisitableTextHandler. trimToWidth(StringVisitable text, int width, Style style)StringVisitableTextRenderer. 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 StringVisitable Modifier and Type Method Description List<StringVisitable>TextHandler. method_35714(StringVisitable stringVisitable, int int2, Style style, StringVisitable stringVisitable2)List<StringVisitable>TextHandler. wrapLines(String text, int maxWidth, Style style)List<StringVisitable>TextHandler. wrapLines(StringVisitable text, int maxWidth, Style style)Methods in net.minecraft.client.font with parameters of type StringVisitable Modifier and Type Method Description static MultilineTextMultilineText. create(TextRenderer renderer, StringVisitable text, int width)static MultilineTextMultilineText. create(TextRenderer renderer, StringVisitable text, int width, int maxLines)voidTextRenderer. drawTrimmed(StringVisitable text, int x, int y, int maxWidth, int color)@Nullable StyleTextHandler. getStyleAt(StringVisitable text, int x)Gets 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.List<StringVisitable>TextHandler. method_35714(StringVisitable stringVisitable, int int2, Style style, StringVisitable stringVisitable2)static StringTextVisitFactory. removeFormattingCodes(StringVisitable text)StringVisitableTextHandler. trimToWidth(StringVisitable text, int width, Style style)StringVisitableTextRenderer. trimToWidth(StringVisitable text, int width)Trims a string to be at mostmaxWidthwide.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.List<StringVisitable>TextHandler. wrapLines(StringVisitable text, int maxWidth, Style style)voidTextHandler. wrapLines(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable,Boolean> biConsumer)List<OrderedText>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 StringVisitable Modifier and Type Method Description voidTextHandler. 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 StringVisitable Modifier and Type Field Description private StringVisitableDialogScreen. messageConstructor parameters in net.minecraft.client.gui.screen with type arguments of type StringVisitable Constructor Description DialogScreen(Text title, List<StringVisitable> list, ImmutableList<DialogScreen.ChoiceButton> choiceButtons) -
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 StringVisitable Modifier and Type Method Description private List<StringVisitable>AdvancementWidget. wrapDescription(Text text, int width)Method parameters in net.minecraft.client.gui.screen.advancement with type arguments of type StringVisitable Modifier and Type Method Description private static floatAdvancementWidget. getMaxWidth(TextHandler textHandler, List<StringVisitable> list) -
Uses of StringVisitable in net.minecraft.client.gui.screen.ingame
Methods in net.minecraft.client.gui.screen.ingame that return StringVisitable Modifier and Type Method Description StringVisitableEnchantingPhrases. generatePhrase(TextRenderer fontRenderer, int width)default StringVisitableBookScreen.Contents. getPage(int index)StringVisitableBookScreen.Contents. getPageUnchecked(int index)StringVisitableBookScreen.WritableBookContents. getPageUnchecked(int index)StringVisitableBookScreen.WrittenBookContents. getPageUnchecked(int index) -
Uses of StringVisitable in net.minecraft.client.resource.language
Methods in net.minecraft.client.resource.language with parameters of type StringVisitable Modifier and Type Method Description static TextReorderingProcessorTextReorderingProcessor. create(StringVisitable visitable, Int2IntFunction reverser, UnaryOperator<String> unaryOperator)static TextReorderingProcessorTextReorderingProcessor. method_36144(StringVisitable stringVisitable)static OrderedTextReorderingUtil. reorder(StringVisitable text, boolean rightToLeft)OrderedTextTranslationStorage. reorder(StringVisitable text) -
Uses of StringVisitable in net.minecraft.client.util
Fields in net.minecraft.client.util with type parameters of type StringVisitable Modifier and Type Field Description private List<StringVisitable>TextCollector. field_25260Methods in net.minecraft.client.util that return StringVisitable Modifier and Type Method Description StringVisitableTextCollector. getCombined()@Nullable StringVisitableTextCollector. getRawCombined()Methods in net.minecraft.client.util with parameters of type StringVisitable Modifier and Type Method Description voidTextCollector. add(StringVisitable stringVisitable)static List<OrderedText>ChatMessages. breakRenderedChatMessageLines(StringVisitable stringVisitable, int width, TextRenderer textRenderer) -
Uses of StringVisitable in net.minecraft.text
Subinterfaces of StringVisitable in net.minecraft.text Modifier and Type Interface Description interfaceMutableTextA text with mutation operations.interfaceTextA text.Classes in net.minecraft.text that implement StringVisitable Modifier and Type Class Description classBaseTextclassKeybindTextclassLiteralTextclassNbtTextstatic classNbtText.BlockNbtTextstatic classNbtText.EntityNbtTextstatic classNbtText.StorageNbtTextclassScoreTextclassSelectorTextclassTranslatableTextFields in net.minecraft.text declared as StringVisitable Modifier and Type Field Description static StringVisitableStringVisitable. EMPTYAn empty visitable that does not call the visitors.private static StringVisitableTranslatableText. LITERAL_PERCENT_SIGNprivate static StringVisitableTranslatableText. NULL_ARGUMENTFields in net.minecraft.text with type parameters of type StringVisitable Modifier and Type Field Description private List<StringVisitable>TranslatableText. translationsMethods in net.minecraft.text that return StringVisitable Modifier and Type Method Description static StringVisitableStringVisitable. concat(List<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 StringVisitableTranslatableText. getArg(int index)static StringVisitableStringVisitable. plain(String string)Creates a visitable from a plain string.static StringVisitableStringVisitable. styled(String string, Style style)Creates a visitable from a plain string and a root style.Methods in net.minecraft.text with parameters of type StringVisitable Modifier and Type Method Description static StringVisitableStringVisitable. 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 StringVisitable Modifier and Type Method Description static StringVisitableStringVisitable. concat(List<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 StringVisitable Modifier and Type Method Description abstract OrderedTextLanguage. reorder(StringVisitable text)Method parameters in net.minecraft.util with type arguments of type StringVisitable Modifier and Type Method Description List<OrderedText>Language. reorder(List<StringVisitable> texts)