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 - enz$e- intermediary - net/minecraft/class_5225$class_5230- named - net/minecraft/client/font/TextHandler$WidthLimitingVisitor
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanVisits a single character.intvoid
- 
Field Details- 
widthLeftprivate float widthLeft- Mappings:
- Namespace - Name - Mixin selector - official - b- Lenz$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
 
- 
lengthprivate int length- Mappings:
- Namespace - Name - Mixin selector - official - c- Lenz$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- 
WidthLimitingVisitorpublic WidthLimitingVisitor(float maxWidth) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lenz$e;<init>(Lenz;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- 
acceptVisits a single character.Multiple surrogate characters are converted into one single codePointwhen passed into this method.- Specified by:
- acceptin interface- CharacterVisitor
- Parameters:
- 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
- Returns:
- trueto continue visiting other characters, or- falseto terminate the visit
- Mappings:
- Namespace - Name - Mixin selector - official - accept- Laon;accept(ILts;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
 
- 
getLengthpublic int getLength()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lenz$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
 
- 
resetLengthpublic void resetLength()- Mappings:
- Namespace - Name - Mixin selector - official - b- Lenz$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
 
 
-