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 named net/minecraft/client/font/TextHandler$LineBreakingVisitor
intermediary net/minecraft/class_5225$class_5227
official fmp$b
-
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 named maxWidth
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;maxWidth:F
intermediary field_24223
Lnet/minecraft/class_5225$class_5227;field_24223:F
official b
Lfmp$b;b:F
-
endIndex
private int endIndex- Mappings:
Namespace Name Mixin selector named endIndex
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endIndex:I
intermediary field_24224
Lnet/minecraft/class_5225$class_5227;field_24224:I
official c
Lfmp$b;c:I
-
endStyle
- Mappings:
Namespace Name Mixin selector named endStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;endStyle:Lnet/minecraft/text/Style;
intermediary field_24225
Lnet/minecraft/class_5225$class_5227;field_24225:Lnet/minecraft/class_2583;
official d
Lfmp$b;d:Lys;
-
nonEmpty
private boolean nonEmpty- Mappings:
Namespace Name Mixin selector named nonEmpty
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;nonEmpty:Z
intermediary field_24226
Lnet/minecraft/class_5225$class_5227;field_24226:Z
official e
Lfmp$b;e:Z
-
totalWidth
private float totalWidth- Mappings:
Namespace Name Mixin selector named totalWidth
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;totalWidth:F
intermediary field_24227
Lnet/minecraft/class_5225$class_5227;field_24227:F
official f
Lfmp$b;f:F
-
lastSpaceBreak
private int lastSpaceBreak- Mappings:
Namespace Name Mixin selector named lastSpaceBreak
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceBreak:I
intermediary field_24228
Lnet/minecraft/class_5225$class_5227;field_24228:I
official g
Lfmp$b;g:I
-
lastSpaceStyle
- Mappings:
Namespace Name Mixin selector named lastSpaceStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;lastSpaceStyle:Lnet/minecraft/text/Style;
intermediary field_24229
Lnet/minecraft/class_5225$class_5227;field_24229:Lnet/minecraft/class_2583;
official h
Lfmp$b;h:Lys;
-
count
private int count- Mappings:
Namespace Name Mixin selector named count
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;count:I
intermediary field_24230
Lnet/minecraft/class_5225$class_5227;field_24230:I
official i
Lfmp$b;i:I
-
startOffset
private int startOffset- Mappings:
Namespace Name Mixin selector named startOffset
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;startOffset:I
intermediary field_24231
Lnet/minecraft/class_5225$class_5227;field_24231:I
official j
Lfmp$b;j:I
-
-
Constructor Details
-
LineBreakingVisitor
public LineBreakingVisitor(float maxWidth) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;<init>(Lnet/minecraft/client/font/TextHandler;F)V
intermediary <init>
Lnet/minecraft/class_5225$class_5227;<init>(Lnet/minecraft/class_5225;F)V
official <init>
Lfmp$b;<init>(Lfmp;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 named accept
Lnet/minecraft/text/CharacterVisitor;accept(ILnet/minecraft/text/Style;I)Z
intermediary accept
Lnet/minecraft/class_5224;accept(ILnet/minecraft/class_2583;I)Z
official accept
Lazr;accept(ILys;I)Z
-
breakLine
- Mappings:
Namespace Name Mixin selector named breakLine
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;breakLine(ILnet/minecraft/text/Style;)Z
intermediary method_27507
Lnet/minecraft/class_5225$class_5227;method_27507(ILnet/minecraft/class_2583;)Z
official a
Lfmp$b;a(ILys;)Z
-
hasLineBreak
private boolean hasLineBreak()- Mappings:
Namespace Name Mixin selector named hasLineBreak
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;hasLineBreak()Z
intermediary method_27509
Lnet/minecraft/class_5225$class_5227;method_27509()Z
official c
Lfmp$b;c()Z
-
getEndingIndex
public int getEndingIndex()- Mappings:
Namespace Name Mixin selector named getEndingIndex
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingIndex()I
intermediary method_27505
Lnet/minecraft/class_5225$class_5227;method_27505()I
official a
Lfmp$b;a()I
-
getEndingStyle
- Mappings:
Namespace Name Mixin selector named getEndingStyle
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;getEndingStyle()Lnet/minecraft/text/Style;
intermediary method_27508
Lnet/minecraft/class_5225$class_5227;method_27508()Lnet/minecraft/class_2583;
official b
Lfmp$b;b()Lys;
-
offset
public void offset(int extraOffset) - Mappings:
Namespace Name Mixin selector named offset
Lnet/minecraft/client/font/TextHandler$LineBreakingVisitor;offset(I)V
intermediary method_27506
Lnet/minecraft/class_5225$class_5227;method_27506(I)V
official a
Lfmp$b;a(I)V
-