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 enr$eintermediary net/minecraft/class_5225$class_5230named net/minecraft/client/font/TextHandler$WidthLimitingVisitor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanVisits a single character.intvoid
-
Field Details
-
widthLeft
private float widthLeft- Mappings:
Namespace Name Mixin selector official bLenr$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 cLenr$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>Lenr$e;<init>(Lenr;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 acceptLaon;accept(ILts;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 aLenr$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 bLenr$e;b()Vintermediary method_27514Lnet/minecraft/class_5225$class_5230;method_27514()Vnamed resetLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;resetLength()V
-