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) class TextHandler.WidthLimitingVisitor extends Object implements CharacterVisitor
- Mappings:
Namespace Name official dqu$eintermediary net/minecraft/class_5225$class_5230named net/minecraft/client/font/TextHandler$WidthLimitingVisitor
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WidthLimitingVisitor(float maxWidth) -
Method Summary
Modifier and Type Method Description booleanaccept(int index, Style style, int codePoint)Visits a single character.intgetLength()voidresetLength()
-
Field Details
-
widthLeft
private float widthLeft- Mappings:
Namespace Name Mixin selector official bLdqu$e;b:Fintermediary field_24235Lnet/minecraft/class_5225$class_5230;field_24235:Fnamed widthLeftLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;widthLeft:F
-
length
private int length- Mappings:
Namespace Name Mixin selector official cLdqu$e;c:Iintermediary field_24236Lnet/minecraft/class_5225$class_5230;field_24236:Inamed lengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;length:I
-
-
Constructor Details
-
WidthLimitingVisitor
public WidthLimitingVisitor(float maxWidth)- Mappings:
Namespace Name Mixin selector official <init>Ldqu$e;<init>(Ldqu;F)Vintermediary <init>Lnet/minecraft/class_5225$class_5230;<init>(Lnet/minecraft/class_5225;F)Vnamed <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
codePointwhen passed into this method.- Specified by:
acceptin 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:
trueto continue visiting other characters, orfalseto terminate the visit- Mappings:
Namespace Name Mixin selector official acceptLaft;accept(ILos;I)Zintermediary acceptLnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Znamed acceptLnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
-
getLength
public int getLength()- Mappings:
Namespace Name Mixin selector official aLdqu$e;a()Iintermediary method_27513Lnet/minecraft/class_5225$class_5230;method_27513()Inamed getLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;getLength()I
-
resetLength
public void resetLength()- Mappings:
Namespace Name Mixin selector official bLdqu$e;b()Vintermediary method_27514Lnet/minecraft/class_5225$class_5230;method_27514()Vnamed resetLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;resetLength()V
-