Class TextHandler.LineBreakingVisitor

java.lang.Object
net.minecraft.client.font.TextHandler.LineBreakingVisitor
All Implemented Interfaces:
CharacterVisitor
Enclosing class:
TextHandler

@Environment(CLIENT)
class TextHandler.LineBreakingVisitor
extends Object
implements CharacterVisitor
Mappings:
Namespace Name
official dqu$b
intermediary net/minecraft/class_5225$class_5227
named net/minecraft/client/font/TextHandler$LineBreakingVisitor
  • Field Details

    • maxWidth

      private final float maxWidth
      Mappings:
      Namespace Name Mixin selector
      official b Ldqu$b;b:F
      intermediary field_24223 Lnet/minecraft/class_5225$class_5227;field_24223:F
      named maxWidth Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;maxWidth:F
    • endIndex

      private int endIndex
      Mappings:
      Namespace Name Mixin selector
      official c Ldqu$b;c:I
      intermediary field_24224 Lnet/minecraft/class_5225$class_5227;field_24224:I
      named endIndex Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endIndex:I
    • endStyle

      private Style endStyle
      Mappings:
      Namespace Name Mixin selector
      official d Ldqu$b;d:Los;
      intermediary field_24225 Lnet/minecraft/class_5225$class_5227;field_24225:Lnet/minecraft/class_2583;
      named endStyle Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endStyle:Lnet/minecraft/text/Style;
    • nonEmpty

      private boolean nonEmpty
      Mappings:
      Namespace Name Mixin selector
      official e Ldqu$b;e:Z
      intermediary field_24226 Lnet/minecraft/class_5225$class_5227;field_24226:Z
      named nonEmpty Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;nonEmpty:Z
    • totalWidth

      private float totalWidth
      Mappings:
      Namespace Name Mixin selector
      official f Ldqu$b;f:F
      intermediary field_24227 Lnet/minecraft/class_5225$class_5227;field_24227:F
      named totalWidth Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;totalWidth:F
    • lastSpaceBreak

      private int lastSpaceBreak
      Mappings:
      Namespace Name Mixin selector
      official g Ldqu$b;g:I
      intermediary field_24228 Lnet/minecraft/class_5225$class_5227;field_24228:I
      named lastSpaceBreak Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceBreak:I
    • lastSpaceStyle

      private Style lastSpaceStyle
      Mappings:
      Namespace Name Mixin selector
      official h Ldqu$b;h:Los;
      intermediary field_24229 Lnet/minecraft/class_5225$class_5227;field_24229:Lnet/minecraft/class_2583;
      named lastSpaceStyle Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceStyle:Lnet/minecraft/text/Style;
    • count

      private int count
      Mappings:
      Namespace Name Mixin selector
      official i Ldqu$b;i:I
      intermediary field_24230 Lnet/minecraft/class_5225$class_5227;field_24230:I
      named count Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;count:I
    • startOffset

      private int startOffset
      Mappings:
      Namespace Name Mixin selector
      official j Ldqu$b;j:I
      intermediary field_24231 Lnet/minecraft/class_5225$class_5227;field_24231:I
      named startOffset Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;startOffset:I
  • Constructor Details

    • LineBreakingVisitor

      public LineBreakingVisitor​(float maxWidth)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldqu$b;<init>(Ldqu;F)V
      intermediary <init> Lnet/minecraft/class_5225$class_5227;<init>(Lnet/minecraft/class_5225;F)V
      named <init> Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;<init>(Lnet/minecraft/client/font/TextHandler;F)V
  • Method Details

    • accept

      public boolean accept​(int index, Style style, int codePoint)
      Visits a single character.

      Multiple surrogate characters are converted into one single codePoint when passed into this method.

      Specified by:
      accept in interface CharacterVisitor
      Parameters:
      index - the current index of the character
      style - the style of the character, containing formatting and font information
      codePoint - the code point of the character
      Returns:
      true to continue visiting other characters, or false to terminate the visit
      Mappings:
      Namespace Name Mixin selector
      official accept Laft;accept(ILos;I)Z
      intermediary accept Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
      named accept Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
    • breakLine

      private boolean breakLine​(int finishIndex, Style finishStyle)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqu$b;a(ILos;)Z
      intermediary method_27507 Lnet/minecraft/class_5225$class_5227;method_27507(ILnet/minecraft/class_2583;)Z
      named breakLine Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;breakLine(ILnet/minecraft/text/Style;)Z
    • hasLineBreak

      private boolean hasLineBreak()
      Mappings:
      Namespace Name Mixin selector
      official c Ldqu$b;c()Z
      intermediary method_27509 Lnet/minecraft/class_5225$class_5227;method_27509()Z
      named hasLineBreak Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;hasLineBreak()Z
    • getEndingIndex

      public int getEndingIndex()
      Mappings:
      Namespace Name Mixin selector
      official a Ldqu$b;a()I
      intermediary method_27505 Lnet/minecraft/class_5225$class_5227;method_27505()I
      named getEndingIndex Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingIndex()I
    • getEndingStyle

      public Style getEndingStyle()
      Mappings:
      Namespace Name Mixin selector
      official b Ldqu$b;b()Los;
      intermediary method_27508 Lnet/minecraft/class_5225$class_5227;method_27508()Lnet/minecraft/class_2583;
      named getEndingStyle Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingStyle()Lnet/minecraft/text/Style;
    • offset

      public void offset​(int extraOffset)
      Mappings:
      Namespace Name Mixin selector
      official a Ldqu$b;a(I)V
      intermediary method_27506 Lnet/minecraft/class_5225$class_5227;method_27506(I)V
      named offset Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;offset(I)V