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 boolean
hadNonZeroWidthChar
private int
lastSpace
private Style
lastSpaceStyle
private int
lineBreak
private Style
lineBreakStyle
private float
maxWidth
private int
nextChar
private int
offset
private float
width
-
Constructor Summary
Constructors Constructor Description MultilineProcessor(float p_i232246_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(int p_accept_1_, Style p_accept_2_, int p_accept_3_)
void
addToOffset(int p_238387_1_)
private boolean
finishIteration(int p_238388_1_, Style p_238388_2_)
int
getSplitPosition()
Style
getSplitStyle()
private boolean
lineBreakFound()
-
-
-
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:
accept
in 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_)
-
-