net.minecraft.client

public class StringSplitter

flu
net.minecraft.client.StringSplitter
net.minecraft.class_5225
net.minecraft.client.font.TextHandler

Field summary

Modifier and TypeField
final StringSplitter$WidthProvider
a
widthProvider
field_24216
widthRetriever

Constructor summary

ModifierConstructor
public (StringSplitter$WidthProvider widthRetriever)

Method summary

Modifier and TypeMethod
public float
a(String arg0)
stringWidth(String arg0)
method_27482(String arg0)
getWidth(String text)
public float
a(wu arg0)
stringWidth(FormattedText arg0)
method_27488(class_5348 arg0)
getWidth(StringVisitable text)
public float
a(ayl arg0)
stringWidth(FormattedCharSequence arg0)
method_30875(class_5481 arg0)
getWidth(OrderedText text)
public int
a(String arg0, int arg1, xm arg2)
plainIndexAtWidth(String arg0, int arg1, Style arg2)
method_27484(String arg0, int arg1, class_2583 arg2)
getTrimmedLength(String text, int maxWidth, Style style)
public String
b(String arg0, int arg1, xm arg2)
plainHeadByWidth(String arg0, int arg1, Style arg2)
method_27494(String arg0, int arg1, class_2583 arg2)
trimToWidth(String text, int maxWidth, Style style)
public String
c(String arg0, int arg1, xm arg2)
plainTailByWidth(String arg0, int arg1, Style arg2)
method_27497(String arg0, int arg1, class_2583 arg2)
trimToWidthBackwards(String text, int maxWidth, Style style)
public int
d(String arg0, int arg1, xm arg2)
formattedIndexByWidth(String arg0, int arg1, Style arg2)
method_35715(String arg0, int arg1, class_2583 arg2)
getLimitedStringLength(String text, int maxWidth, Style style)
public Style
a(wu arg0, int arg1)
componentStyleAtWidth(FormattedText arg0, int arg1)
method_27489(class_5348 arg0, int arg1)
getStyleAt(StringVisitable text, int x)
public Style
a(ayl arg0, int arg1)
componentStyleAtWidth(FormattedCharSequence arg0, int arg1)
method_30876(class_5481 arg0, int arg1)
getStyleAt(OrderedText text, int x)
public String
e(String arg0, int arg1, xm arg2)
formattedHeadByWidth(String arg0, int arg1, Style arg2)
method_35716(String arg0, int arg1, class_2583 arg2)
limitString(String text, int maxWidth, Style style)
public FormattedText
a(wu arg0, int arg1, xm arg2)
headByWidth(FormattedText arg0, int arg1, Style arg2)
method_27490(class_5348 arg0, int arg1, class_2583 arg2)
trimToWidth(StringVisitable text, int width, Style style)
public int
f(String arg0, int arg1, xm arg2)
findLineBreak(String arg0, int arg1, Style arg2)
method_35717(String arg0, int arg1, class_2583 arg2)
getEndingIndex(String text, int maxWidth, Style style)
public static int
a(String arg0, int arg1, int arg2, boolean arg3)
getWordPosition(String arg0, int arg1, int arg2, boolean arg3)
method_27483(String arg0, int arg1, int arg2, boolean arg3)
moveCursorByWords(String text, int offset, int cursor, boolean consumeSpaceOrBreak)
public void
a(String arg0, int arg1, xm arg2, boolean arg3, flu$d arg4)
splitLines(String arg0, int arg1, Style arg2, boolean arg3, StringSplitter$LinePosConsumer arg4)
method_27485(String arg0, int arg1, class_2583 arg2, boolean arg3, class_5225$class_5229 arg4)
wrapLines(String text, int maxWidth, Style style, boolean retainTrailingWordSplit, TextHandler$LineWrappingConsumer consumer)
public List<FormattedText>
g(String arg0, int arg1, xm arg2)
splitLines(String arg0, int arg1, Style arg2)
method_27498(String arg0, int arg1, class_2583 arg2)
wrapLines(String text, int maxWidth, Style style)
public List<FormattedText>
b(wu arg0, int arg1, xm arg2)
splitLines(FormattedText arg0, int arg1, Style arg2)
method_27495(class_5348 arg0, int arg1, class_2583 arg2)
wrapLines(StringVisitable text, int maxWidth, Style style)
public List<FormattedText>
a(wu arg0, int arg1, xm arg2, wu arg3)
splitLines(FormattedText arg0, int arg1, Style arg2, FormattedText arg3)
method_35714(class_5348 arg0, int arg1, class_2583 arg2, class_5348 arg3)
wrapLines(StringVisitable text, int maxWidth, Style style, StringVisitable wrappedLinePrefix)
public void
a(wu arg0, int arg1, xm arg2, BiConsumer<wu, Boolean> arg3)
splitLines(FormattedText arg0, int arg1, Style arg2, BiConsumer<FormattedText, Boolean> arg3)
method_29971(class_5348 arg0, int arg1, class_2583 arg2, BiConsumer<class_5348, Boolean> arg3)
wrapLines(StringVisitable text, int maxWidth, Style style, BiConsumer<StringVisitable, Boolean> lineConsumer)