类 TextHandler.WidthLimitingVisitor

    • 字段详细资料

      • widthLeft

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

        private int length
        Mappings:
        Namespace Name Mixin selector
        official c Lduw$e;c:I
        intermediary field_24236 Lnet/minecraft/class_5225$class_5230;field_24236:I
        named length Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;length:I
    • 构造器详细资料

      • WidthLimitingVisitor

        public WidthLimitingVisitor​(float maxWidth)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lduw$e;<init>(Lduw;F)V
        intermediary <init> Lnet/minecraft/class_5225$class_5230;<init>(Lnet/minecraft/class_5225;F)V
        named <init> Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;<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
      • getLength

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

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