net.minecraft.client

public class StringSplitter

erh
net.minecraft.client.StringSplitter
net.minecraft.class_5225
net.minecraft.client.font.TextHandler
net.minecraft.src.C_3410_

Field summary

Modifier and TypeField
final StringSplitter$WidthProvider
a
widthProvider
field_24216
widthRetriever
f_92333_

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)
m_92353_(String arg0)
public float
a(tp arg0)
stringWidth(FormattedText arg0)
method_27488(class_5348 arg0)
getWidth(StringVisitable text)
m_92384_(C_5000_ arg0)
public float
a(arj arg0)
stringWidth(FormattedCharSequence arg0)
method_30875(class_5481 arg0)
getWidth(OrderedText text)
m_92336_(C_178_ arg0)
public int
a(String arg0, int arg1, uh arg2)
plainIndexAtWidth(String arg0, int arg1, Style arg2)
method_27484(String arg0, int arg1, class_2583 arg2)
getTrimmedLength(String text, int maxWidth, Style style)
m_92360_(String p_92362_, int p_92363_, C_5020_ arg2)
public String
b(String arg0, int arg1, uh arg2)
plainHeadByWidth(String arg0, int arg1, Style arg2)
method_27494(String arg0, int arg1, class_2583 arg2)
trimToWidth(String text, int maxWidth, Style style)
m_92410_(String p_92412_, int p_92413_, C_5020_ arg2)
public String
c(String arg0, int arg1, uh arg2)
plainTailByWidth(String arg0, int arg1, Style arg2)
method_27497(String arg0, int arg1, class_2583 arg2)
trimToWidthBackwards(String text, int maxWidth, Style style)
m_92423_(String p_92425_, int p_92426_, C_5020_ arg2)
public int
d(String arg0, int arg1, uh arg2)
formattedIndexByWidth(String arg0, int arg1, Style arg2)
method_35715(String arg0, int arg1, class_2583 arg2)
getLimitedStringLength(String text, int maxWidth, Style style)
m_168626_(String p_168628_, int p_168629_, C_5020_ arg2)
public Style
a(tp arg0, int arg1)
componentStyleAtWidth(FormattedText arg0, int arg1)
method_27489(class_5348 arg0, int arg1)
getStyleAt(StringVisitable text, int x)
m_92386_(C_5000_ p_92388_, int arg1)
public Style
a(arj arg0, int arg1)
componentStyleAtWidth(FormattedCharSequence arg0, int arg1)
method_30876(class_5481 arg0, int arg1)
getStyleAt(OrderedText text, int x)
m_92338_(C_178_ p_92340_, int arg1)
public String
e(String arg0, int arg1, uh arg2)
formattedHeadByWidth(String arg0, int arg1, Style arg2)
method_35716(String arg0, int arg1, class_2583 arg2)
limitString(String text, int maxWidth, Style style)
m_168630_(String p_168632_, int p_168633_, C_5020_ arg2)
public FormattedText
a(tp arg0, int arg1, uh 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)
m_92389_(C_5000_ p_92391_, int p_92392_, C_5020_ arg2)
public int
f(String arg0, int arg1, uh arg2)
findLineBreak(String arg0, int arg1, Style arg2)
method_35717(String arg0, int arg1, class_2583 arg2)
getEndingIndex(String text, int maxWidth, Style style)
m_168634_(String p_168636_, int p_168637_, C_5020_ arg2)
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)
m_92355_(String p_92356_, int p_92357_, int p_92358_, boolean p_92359_)
public void
a(String arg0, int arg1, uh arg2, boolean arg3, erh$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)
m_92364_(String p_92366_, int p_92367_, C_5020_ p_92368_, boolean p_92369_, C_3410_$C_3415_ arg4)
public List<FormattedText>
g(String arg0, int arg1, uh arg2)
splitLines(String arg0, int arg1, Style arg2)
method_27498(String arg0, int arg1, class_2583 arg2)
wrapLines(String text, int maxWidth, Style style)
m_92432_(String p_92434_, int p_92435_, C_5020_ arg2)
public List<FormattedText>
b(tp arg0, int arg1, uh 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)
m_92414_(C_5000_ p_92416_, int p_92417_, C_5020_ arg2)
public List<FormattedText>
a(tp arg0, int arg1, uh arg2, tp 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)
m_168621_(C_5000_ p_168623_, int p_168624_, C_5020_ p_168625_, C_5000_ arg3)
public void
a(tp arg0, int arg1, uh arg2, BiConsumer<tp, 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)
m_92393_(C_5000_ p_92395_, int p_92396_, C_5020_ p_92397_, BiConsumer<C_5000_, Boolean> arg3)