Package net.minecraft.client.font
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 official dxn$e
intermediary net/minecraft/class_5225$class_5230
named net/minecraft/client/font/TextHandler$WidthLimitingVisitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Visits a single character.int
void
-
Field Details
-
widthLeft
private float widthLeft- Mappings:
Namespace Name Mixin selector official b
Ldxn$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
Ldxn$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
-
-
Constructor Details
-
WidthLimitingVisitor
public WidthLimitingVisitor(float maxWidth) - Mappings:
Namespace Name Mixin selector official <init>
Ldxn$e;<init>(Ldxn;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
-
-
Method Details
-
accept
Visits a single character.Multiple surrogate characters are converted into one single
codePoint
when passed into this method.- Specified by:
accept
in interfaceCharacterVisitor
- Parameters:
index
- the current index of the characterstyle
- the style of the character, containing formatting and font informationcodePoint
- the code point of the character- Returns:
true
to continue visiting other characters, orfalse
to terminate the visit- Mappings:
Namespace Name Mixin selector official accept
Laig;accept(ILqd;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
Ldxn$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
Ldxn$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
-