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 named net/minecraft/client/font/TextHandler$WidthLimitingVisitorintermediary net/minecraft/class_5225$class_5230official fgz$e
-
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 named widthLeftLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;widthLeft:Fintermediary field_24235Lnet/minecraft/class_5225$class_5230;field_24235:Fofficial bLfgz$e;b:F
-
length
private int length- Mappings:
Namespace Name Mixin selector named lengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;length:Iintermediary field_24236Lnet/minecraft/class_5225$class_5230;field_24236:Iofficial cLfgz$e;c:I
-
-
Constructor Details
-
WidthLimitingVisitor
public WidthLimitingVisitor(float maxWidth) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;<init>(Lnet/minecraft/client/font/TextHandler;F)Vintermediary <init>Lnet/minecraft/class_5225$class_5230;<init>(Lnet/minecraft/class_5225;F)Vofficial <init>Lfgz$e;<init>(Lfgz;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 named acceptLnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Zintermediary acceptLnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Zofficial acceptLayb;accept(ILxw;I)Z
-
getLength
public int getLength()- Mappings:
Namespace Name Mixin selector named getLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;getLength()Iintermediary method_27513Lnet/minecraft/class_5225$class_5230;method_27513()Iofficial aLfgz$e;a()I
-
resetLength
public void resetLength()- Mappings:
Namespace Name Mixin selector named resetLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;resetLength()Vintermediary method_27514Lnet/minecraft/class_5225$class_5230;method_27514()Vofficial bLfgz$e;b()V
-