类 TextHandler.WidthLimitingVisitor
- java.lang.Object
-
- net.minecraft.client.font.TextHandler.WidthLimitingVisitor
-
- 所有已实现的接口:
CharacterVisitor
- 封闭类:
- TextHandler
@Environment(CLIENT) class TextHandler.WidthLimitingVisitor extends Object implements CharacterVisitor
- Mappings:
Namespace Name official duw$eintermediary net/minecraft/class_5225$class_5230named net/minecraft/client/font/TextHandler$WidthLimitingVisitor
-
-
构造器概要
构造器 构造器 说明 WidthLimitingVisitor(float maxWidth)
-
-
-
字段详细资料
-
widthLeft
private float widthLeft
- Mappings:
Namespace Name Mixin selector official bLduw$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 cLduw$e;c:Iintermediary field_24236Lnet/minecraft/class_5225$class_5230;field_24236:Inamed lengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;length:I
-
-
构造器详细资料
-
WidthLimitingVisitor
public WidthLimitingVisitor(float maxWidth)
- Mappings:
Namespace Name Mixin selector official <init>Lduw$e;<init>(Lduw;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
-
-
方法详细资料
-
accept
public boolean accept(int index, Style style, int codePoint)Visits a single character.Multiple surrogate characters are converted into one single
codePointwhen passed into this method.- 指定者:
accept在接口中CharacterVisitor- 参数:
index- the current index of the characterstyle- the style of the character, containing formatting and font informationcodePoint- the code point of the character- 返回:
trueto continue visiting other characters, orfalseto terminate the visit- Mappings:
Namespace Name Mixin selector official acceptLagk;accept(ILox;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 aLduw$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 bLduw$e;b()Vintermediary method_27514Lnet/minecraft/class_5225$class_5230;method_27514()Vnamed resetLengthLnet/minecraft/client/font/TextHandler$WidthLimitingVisitor;resetLength()V
-
-