类 TextHandler.LineBreakingVisitor

    • 字段详细资料

      • maxWidth

        private final float maxWidth
        Mappings:
        Namespace Name Mixin selector
        official b Lduw$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 Lduw$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 Lduw$b;d:Lox;
        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 Lduw$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 Lduw$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 Lduw$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 Lduw$b;h:Lox;
        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 Lduw$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 Lduw$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
    • 构造器详细资料

      • LineBreakingVisitor

        public LineBreakingVisitor​(float maxWidth)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lduw$b;<init>(Lduw;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
    • 方法详细资料

      • 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.

        指定者:
        accept 在接口中 CharacterVisitor
        参数:
        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
        返回:
        true to continue visiting other characters, or false to terminate the visit
        Mappings:
        Namespace Name Mixin selector
        official accept Lagk;accept(ILox;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 Lduw$b;a(ILox;)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 Lduw$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 Lduw$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 Lduw$b;b()Lox;
        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 Lduw$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