Class CharacterManager.MultilineProcessor

java.lang.Object
net.minecraft.util.text.CharacterManager.MultilineProcessor
All Implemented Interfaces:
ICharacterConsumer
Enclosing class:
CharacterManager

class CharacterManager.MultilineProcessor extends Object implements ICharacterConsumer
  • Field Details

    • 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
  • Constructor Details

    • MultilineProcessor

      public MultilineProcessor(float p_i232246_2_)
  • Method Details

    • accept

      public boolean accept(int p_accept_1_, Style p_accept_2_, int p_accept_3_)
      Specified by:
      accept in interface ICharacterConsumer
    • 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_)