Class StringDecomposer
java.lang.Object
net.minecraft.util.StringDecomposer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanfeedChar(Style style, FormattedCharSink output, int pos, char ch) static StringfilterBrokenSurrogates(String input) static StringgetPlainText(FormattedText input) static booleaniterate(String string, Style style, FormattedCharSink output) static booleaniterateBackwards(String string, Style style, FormattedCharSink output) static booleaniterateFormatted(String string, int offset, Style currentStyle, Style resetStyle, FormattedCharSink output) static booleaniterateFormatted(String string, int offset, Style style, FormattedCharSink output) static booleaniterateFormatted(String string, Style style, FormattedCharSink output) static booleaniterateFormatted(FormattedText component, Style rootStyle, FormattedCharSink output)
-
Field Details
-
REPLACEMENT_CHAR
private static final char REPLACEMENT_CHAR- See Also:
-
STOP_ITERATION
-
-
Constructor Details
-
StringDecomposer
public StringDecomposer()
-
-
Method Details
-
feedChar
-
iterate
-
iterateBackwards
-
iterateFormatted
-
iterateFormatted
public static boolean iterateFormatted(String string, int offset, Style style, FormattedCharSink output) -
iterateFormatted
public static boolean iterateFormatted(String string, int offset, Style currentStyle, Style resetStyle, FormattedCharSink output) -
iterateFormatted
public static boolean iterateFormatted(FormattedText component, Style rootStyle, FormattedCharSink output) -
filterBrokenSurrogates
-
getPlainText
-