Package net.minecraft.client
Class StringSplitter.LineBreakFinder
java.lang.Object
net.minecraft.client.StringSplitter.LineBreakFinder
- All Implemented Interfaces:
FormattedCharSink
- Enclosing class:
- StringSplitter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
addToOffset
(int p_92475_) private boolean
finishIteration
(int p_92477_, Style p_92478_) int
private boolean
-
Field Details
-
maxWidth
private final float maxWidth -
lineBreak
private int lineBreak -
lineBreakStyle
-
hadNonZeroWidthChar
private boolean hadNonZeroWidthChar -
width
private float width -
lastSpace
private int lastSpace -
lastSpaceStyle
-
nextChar
private int nextChar -
offset
private int offset
-
-
Constructor Details
-
LineBreakFinder
public LineBreakFinder(float p_92472_)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceFormattedCharSink
-
finishIteration
-
lineBreakFound
private boolean lineBreakFound() -
getSplitPosition
public int getSplitPosition() -
getSplitStyle
-
addToOffset
public void addToOffset(int p_92475_)
-