Class StringSplitter.LineBreakFinder

java.lang.Object
net.minecraft.client.StringSplitter.LineBreakFinder
All Implemented Interfaces:
FormattedCharSink
Enclosing class:
StringSplitter

class StringSplitter.LineBreakFinder extends Object implements FormattedCharSink
  • 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

    • LineBreakFinder

      public LineBreakFinder(float p_92472_)
  • Method Details

    • accept

      public boolean accept(int p_92480_, Style p_92481_, int p_92482_)
      Specified by:
      accept in interface FormattedCharSink
    • finishIteration

      private boolean finishIteration(int p_92477_, Style p_92478_)
    • lineBreakFound

      private boolean lineBreakFound()
    • getSplitPosition

      public int getSplitPosition()
    • getSplitStyle

      public Style getSplitStyle()
    • addToOffset

      public void addToOffset(int p_92475_)