Package net.minecraft.util.text
Class CharacterManager.MultilineProcessor
- java.lang.Object
-
- net.minecraft.util.text.CharacterManager.MultilineProcessor
-
- All Implemented Interfaces:
ICharacterConsumer
- Enclosing class:
- CharacterManager
class CharacterManager.MultilineProcessor extends java.lang.Object implements ICharacterConsumer
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhadNonZeroWidthCharprivate intlastSpaceprivate StylelastSpaceStyleprivate intlineBreakprivate StylelineBreakStyleprivate floatmaxWidthprivate intnextCharprivate intoffsetprivate floatwidth
-
Constructor Summary
Constructors Constructor Description MultilineProcessor(float p_i232246_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(int p_accept_1_, Style p_accept_2_, int p_accept_3_)voidaddToOffset(int p_238387_1_)private booleanfinishIteration(int p_238388_1_, Style p_238388_2_)intgetSplitPosition()StylegetSplitStyle()private booleanlineBreakFound()
-
-
-
Field Detail
-
maxWidth
private final float maxWidth
-
lineBreak
private int lineBreak
-
lineBreakStyle
private Style lineBreakStyle
-
hadNonZeroWidthChar
private boolean hadNonZeroWidthChar
-
width
private float width
-
lastSpace
private int lastSpace
-
lastSpaceStyle
private Style lastSpaceStyle
-
nextChar
private int nextChar
-
offset
private int offset
-
-
Method Detail
-
accept
public boolean accept(int p_accept_1_, Style p_accept_2_, int p_accept_3_)- Specified by:
acceptin interfaceICharacterConsumer
-
finishIteration
private boolean finishIteration(int p_238388_1_, Style p_238388_2_)
-
lineBreakFound
private boolean lineBreakFound()
-
getSplitPosition
public int getSplitPosition()
-
getSplitStyle
public Style getSplitStyle()
-
addToOffset
public void addToOffset(int p_238387_1_)
-
-