Package net.minecraft.client.font
Class TextHandler.LineBreakingVisitor
java.lang.Object
net.minecraft.client.font.TextHandler.LineBreakingVisitor
- All Implemented Interfaces:
CharacterVisitor
- Enclosing class:
- TextHandler
@Environment(CLIENT)
private class TextHandler.LineBreakingVisitor
extends Object
implements CharacterVisitor
- Mappings:
Namespace Name official dya$b
intermediary net/minecraft/class_5225$class_5227
named net/minecraft/client/font/TextHandler$LineBreakingVisitor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Visits a single character.private boolean
int
private boolean
void
offset
(int extraOffset)
-
Field Details
-
maxWidth
private final float maxWidth- Mappings:
Namespace Name Mixin selector official b
Ldya$b;b:F
intermediary field_24223
Lnet/minecraft/class_5225$class_5227;field_24223:F
named maxWidth
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;maxWidth:F
-
endIndex
private int endIndex- Mappings:
Namespace Name Mixin selector official c
Ldya$b;c:I
intermediary field_24224
Lnet/minecraft/class_5225$class_5227;field_24224:I
named endIndex
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endIndex:I
-
endStyle
- Mappings:
Namespace Name Mixin selector official d
Ldya$b;d:Lqj;
intermediary field_24225
Lnet/minecraft/class_5225$class_5227;field_24225:Lnet/minecraft/class_2583;
named endStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endStyle:Lnet/minecraft/text/Style;
-
nonEmpty
private boolean nonEmpty- Mappings:
Namespace Name Mixin selector official e
Ldya$b;e:Z
intermediary field_24226
Lnet/minecraft/class_5225$class_5227;field_24226:Z
named nonEmpty
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;nonEmpty:Z
-
totalWidth
private float totalWidth- Mappings:
Namespace Name Mixin selector official f
Ldya$b;f:F
intermediary field_24227
Lnet/minecraft/class_5225$class_5227;field_24227:F
named totalWidth
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;totalWidth:F
-
lastSpaceBreak
private int lastSpaceBreak- Mappings:
Namespace Name Mixin selector official g
Ldya$b;g:I
intermediary field_24228
Lnet/minecraft/class_5225$class_5227;field_24228:I
named lastSpaceBreak
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceBreak:I
-
lastSpaceStyle
- Mappings:
Namespace Name Mixin selector official h
Ldya$b;h:Lqj;
intermediary field_24229
Lnet/minecraft/class_5225$class_5227;field_24229:Lnet/minecraft/class_2583;
named lastSpaceStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceStyle:Lnet/minecraft/text/Style;
-
count
private int count- Mappings:
Namespace Name Mixin selector official i
Ldya$b;i:I
intermediary field_24230
Lnet/minecraft/class_5225$class_5227;field_24230:I
named count
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;count:I
-
startOffset
private int startOffset- Mappings:
Namespace Name Mixin selector official j
Ldya$b;j:I
intermediary field_24231
Lnet/minecraft/class_5225$class_5227;field_24231:I
named startOffset
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;startOffset:I
-
-
Constructor Details
-
LineBreakingVisitor
public LineBreakingVisitor(float maxWidth) - Mappings:
Namespace Name Mixin selector official <init>
Ldya$b;<init>(Ldya;F)V
intermediary <init>
Lnet/minecraft/class_5225$class_5227;<init>(Lnet/minecraft/class_5225;F)V
named <init>
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;<init>(Lnet/minecraft/client/font/TextHandler;F)V
-
-
Method Details
-
accept
Visits a single character.Multiple surrogate characters are converted into one single
codePoint
when passed into this method.- Specified by:
accept
in 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:
true
to continue visiting other characters, orfalse
to terminate the visit- Mappings:
Namespace Name Mixin selector official accept
Lain;accept(ILqj;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
-
breakLine
- Mappings:
Namespace Name Mixin selector official a
Ldya$b;a(ILqj;)Z
intermediary method_27507
Lnet/minecraft/class_5225$class_5227;method_27507(ILnet/minecraft/class_2583;)Z
named breakLine
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;breakLine(ILnet/minecraft/text/Style;)Z
-
hasLineBreak
private boolean hasLineBreak()- Mappings:
Namespace Name Mixin selector official c
Ldya$b;c()Z
intermediary method_27509
Lnet/minecraft/class_5225$class_5227;method_27509()Z
named hasLineBreak
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;hasLineBreak()Z
-
getEndingIndex
public int getEndingIndex()- Mappings:
Namespace Name Mixin selector official a
Ldya$b;a()I
intermediary method_27505
Lnet/minecraft/class_5225$class_5227;method_27505()I
named getEndingIndex
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingIndex()I
-
getEndingStyle
- Mappings:
Namespace Name Mixin selector official b
Ldya$b;b()Lqj;
intermediary method_27508
Lnet/minecraft/class_5225$class_5227;method_27508()Lnet/minecraft/class_2583;
named getEndingStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingStyle()Lnet/minecraft/text/Style;
-
offset
public void offset(int extraOffset) - Mappings:
Namespace Name Mixin selector official a
Ldya$b;a(I)V
intermediary method_27506
Lnet/minecraft/class_5225$class_5227;method_27506(I)V
named offset
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;offset(I)V
-