Package net.minecraft.client
Class StringSplitter
java.lang.Object
net.minecraft.client.StringSplitter
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) class
(package private) static class
static interface
static final record
(package private) class
(package private) class
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomponentStyleAtWidth
(FormattedText p_92387_, int p_92388_) componentStyleAtWidth
(FormattedCharSequence p_92339_, int p_92340_) int
findLineBreak
(String p_168635_, int p_168636_, Style p_168637_) findSpans
(FormattedCharSequence p_242390_, Predicate<Style> p_242453_) formattedHeadByWidth
(String p_168631_, int p_168632_, Style p_168633_) int
formattedIndexByWidth
(String p_168627_, int p_168628_, Style p_168629_) static int
getWordPosition
(String p_92356_, int p_92357_, int p_92358_, boolean p_92359_) headByWidth
(FormattedText p_92390_, int p_92391_, Style p_92392_) plainHeadByWidth
(String p_92411_, int p_92412_, Style p_92413_) int
plainIndexAtWidth
(String p_92361_, int p_92362_, Style p_92363_) plainTailByWidth
(String p_92424_, int p_92425_, Style p_92426_) splitLines
(String p_92433_, int p_92434_, Style p_92435_) void
splitLines
(String p_92365_, int p_92366_, Style p_92367_, boolean p_92368_, StringSplitter.LinePosConsumer p_92369_) splitLines
(FormattedText p_92415_, int p_92416_, Style p_92417_) void
splitLines
(FormattedText p_92394_, int p_92395_, Style p_92396_, BiConsumer<FormattedText, Boolean> p_92397_) splitLines
(FormattedText p_168622_, int p_168623_, Style p_168624_, FormattedText p_168625_) float
stringWidth
(String p_92354_) float
stringWidth
(FormattedText p_92385_) float
stringWidth
(FormattedCharSequence p_92337_)
-
Field Details
-
widthProvider
-
-
Constructor Details
-
StringSplitter
-
-
Method Details
-
stringWidth
-
stringWidth
-
stringWidth
-
plainIndexAtWidth
-
plainHeadByWidth
-
plainTailByWidth
-
formattedIndexByWidth
-
componentStyleAtWidth
-
componentStyleAtWidth
-
formattedHeadByWidth
-
headByWidth
-
findSpans
public List<StringSplitter.Span> findSpans(FormattedCharSequence p_242390_, Predicate<Style> p_242453_) -
findLineBreak
-
getWordPosition
-
splitLines
public void splitLines(String p_92365_, int p_92366_, Style p_92367_, boolean p_92368_, StringSplitter.LinePosConsumer p_92369_) -
splitLines
-
splitLines
-
splitLines
public List<FormattedText> splitLines(FormattedText p_168622_, int p_168623_, Style p_168624_, FormattedText p_168625_) -
splitLines
public void splitLines(FormattedText p_92394_, int p_92395_, Style p_92396_, BiConsumer<FormattedText, Boolean> p_92397_)
-