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 class
TextHandler.StyledString
Methods in net.minecraft.client.font that return StringVisitable Modifier and Type Method Description StringVisitable
TextHandler.LineWrappingCollector. collectLine(int lineLength, int skippedLength, Style style)
@Nullable StringVisitable
TextHandler.LineWrappingCollector. collectRemainers()
StringVisitable
TextHandler. trimToWidth(StringVisitable text, int width, Style style)
StringVisitable
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 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 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)
@Nullable Style
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.List<StringVisitable>
TextHandler. method_35714(StringVisitable stringVisitable, int int2, Style style, StringVisitable stringVisitable2)
static String
TextVisitFactory. removeFormattingCodes(StringVisitable text)
StringVisitable
TextHandler. trimToWidth(StringVisitable text, int width, Style style)
StringVisitable
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.List<StringVisitable>
TextHandler. wrapLines(StringVisitable text, int maxWidth, Style style)
void
TextHandler. 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 void
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 StringVisitable Modifier and Type Field Description private StringVisitable
DialogScreen. message
Constructor 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 float
AdvancementWidget. 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 StringVisitable
EnchantingPhrases. generatePhrase(TextRenderer fontRenderer, int width)
default StringVisitable
BookScreen.Contents. getPage(int index)
StringVisitable
BookScreen.Contents. getPageUnchecked(int index)
StringVisitable
BookScreen.WritableBookContents. getPageUnchecked(int index)
StringVisitable
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 StringVisitable Modifier and Type Method Description static TextReorderingProcessor
TextReorderingProcessor. create(StringVisitable visitable, Int2IntFunction reverser, UnaryOperator<String> unaryOperator)
static TextReorderingProcessor
TextReorderingProcessor. method_36144(StringVisitable stringVisitable)
static OrderedText
ReorderingUtil. reorder(StringVisitable text, boolean rightToLeft)
OrderedText
TranslationStorage. 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_25260
Methods in net.minecraft.client.util that return StringVisitable Modifier and Type Method Description StringVisitable
TextCollector. getCombined()
@Nullable StringVisitable
TextCollector. getRawCombined()
Methods in net.minecraft.client.util with parameters of type StringVisitable Modifier and Type Method Description void
TextCollector. 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 interface
MutableText
A text with mutation operations.interface
Text
A text.Classes in net.minecraft.text that implement StringVisitable Modifier and Type Class Description class
BaseText
class
KeybindText
class
LiteralText
class
NbtText
static class
NbtText.BlockNbtText
static class
NbtText.EntityNbtText
static class
NbtText.StorageNbtText
class
ScoreText
class
SelectorText
class
TranslatableText
Fields in net.minecraft.text declared as StringVisitable Modifier and Type Field Description static 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 StringVisitable Modifier and Type Field Description private List<StringVisitable>
TranslatableText. translations
Methods in net.minecraft.text that return StringVisitable Modifier and Type Method Description static StringVisitable
StringVisitable. concat(List<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
StringVisitable. plain(String string)
Creates a visitable from a plain string.static StringVisitable
StringVisitable. 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 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 StringVisitable Modifier and Type Method Description static StringVisitable
StringVisitable. 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 OrderedText
Language. 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)