Class TextHandler.WidthLimitingVisitor

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

@Environment(CLIENT) private class TextHandler.WidthLimitingVisitor extends Object implements CharacterVisitor
Mappings:
Namespace Name
named net/minecraft/client/font/TextHandler$WidthLimitingVisitor
intermediary net/minecraft/class_5225$class_5230
official fgz$e
  • Field Details

    • widthLeft

      private float widthLeft
      Mappings:
      Namespace Name Mixin selector
      named widthLeft Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;widthLeft:F
      intermediary field_24235 Lnet/minecraft/class_5225$class_5230;field_24235:F
      official b Lfgz$e;b:F
    • length

      private int length
      Mappings:
      Namespace Name Mixin selector
      named length Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;length:I
      intermediary field_24236 Lnet/minecraft/class_5225$class_5230;field_24236:I
      official c Lfgz$e;c:I
  • Constructor Details

    • WidthLimitingVisitor

      public WidthLimitingVisitor(float maxWidth)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;<init>(Lnet/minecraft/client/font/TextHandler;F)V
      intermediary <init> Lnet/minecraft/class_5225$class_5230;<init>(Lnet/minecraft/class_5225;F)V
      official <init> Lfgz$e;<init>(Lfgz;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
      named accept Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
      intermediary accept Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
      official accept Layb;accept(ILxw;I)Z
    • getLength

      public int getLength()
      Mappings:
      Namespace Name Mixin selector
      named getLength Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;getLength()I
      intermediary method_27513 Lnet/minecraft/class_5225$class_5230;method_27513()I
      official a Lfgz$e;a()I
    • resetLength

      public void resetLength()
      Mappings:
      Namespace Name Mixin selector
      named resetLength Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;resetLength()V
      intermediary method_27514 Lnet/minecraft/class_5225$class_5230;method_27514()V
      official b Lfgz$e;b()V