Package net.minecraft.client.font
Class TextRenderer.Drawer
java.lang.Object
net.minecraft.client.font.TextRenderer.Drawer
- All Implemented Interfaces:
TextRenderer.GlyphDrawable
,CharacterVisitor
- Enclosing class:
TextRenderer
@Environment(CLIENT)
private class TextRenderer.Drawer
extends Object
implements CharacterVisitor, TextRenderer.GlyphDrawable
- Mappings:
Namespace Name named net/minecraft/client/font/TextRenderer$Drawer
intermediary net/minecraft/class_327$class_5232
official fwy$d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
(package private) final List
<BakedGlyph.DrawnGlyph> private float
private float
private float
private float
private float
private float
private float
private float
private @Nullable List
<BakedGlyph.Rectangle> private final boolean
(package private) float
(package private) float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Visits a single character.private void
addGlyph
(BakedGlyph.DrawnGlyph glyph) private void
addRectangle
(BakedGlyph.Rectangle rectangle) void
draw
(TextRenderer.GlyphDrawer glyphDrawer) private int
getRenderColor
(@Nullable TextColor override) private int
getShadowColor
(Style style, int textColor) private void
updateBackgroundBounds
(float x, float y, float width) private void
updateTextBounds
(float minX, float minY, float maxX, float maxY)
-
Field Details
-
shadow
private final boolean shadow- Mappings:
Namespace Name Mixin selector named shadow
Lnet/minecraft/client/font/TextRenderer$Drawer;shadow:Z
intermediary field_24241
Lnet/minecraft/class_327$class_5232;field_24241:Z
official b
Lfwy$d;b:Z
-
color
private final int color- Mappings:
Namespace Name Mixin selector named color
Lnet/minecraft/client/font/TextRenderer$Drawer;color:I
intermediary field_54817
Lnet/minecraft/class_327$class_5232;field_54817:I
official c
Lfwy$d;c:I
-
backgroundColor
private final int backgroundColor- Mappings:
Namespace Name Mixin selector named backgroundColor
Lnet/minecraft/client/font/TextRenderer$Drawer;backgroundColor:I
intermediary field_54818
Lnet/minecraft/class_327$class_5232;field_54818:I
official d
Lfwy$d;d:I
-
x
float x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/client/font/TextRenderer$Drawer;x:F
intermediary field_24250
Lnet/minecraft/class_327$class_5232;field_24250:F
official e
Lfwy$d;e:F
-
y
float y- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/client/font/TextRenderer$Drawer;y:F
intermediary field_24251
Lnet/minecraft/class_327$class_5232;field_24251:F
official f
Lfwy$d;f:F
-
minX
private float minX- Mappings:
Namespace Name Mixin selector named minX
Lnet/minecraft/client/font/TextRenderer$Drawer;minX:F
intermediary field_60699
Lnet/minecraft/class_327$class_5232;field_60699:F
official g
Lfwy$d;g:F
-
minY
private float minY- Mappings:
Namespace Name Mixin selector named minY
Lnet/minecraft/client/font/TextRenderer$Drawer;minY:F
intermediary field_60700
Lnet/minecraft/class_327$class_5232;field_60700:F
official h
Lfwy$d;h:F
-
maxX
private float maxX- Mappings:
Namespace Name Mixin selector named maxX
Lnet/minecraft/client/font/TextRenderer$Drawer;maxX:F
intermediary field_60701
Lnet/minecraft/class_327$class_5232;field_60701:F
official i
Lfwy$d;i:F
-
maxY
private float maxY- Mappings:
Namespace Name Mixin selector named maxY
Lnet/minecraft/client/font/TextRenderer$Drawer;maxY:F
intermediary field_60702
Lnet/minecraft/class_327$class_5232;field_60702:F
official j
Lfwy$d;j:F
-
minBackgroundX
private float minBackgroundX- Mappings:
Namespace Name Mixin selector named minBackgroundX
Lnet/minecraft/client/font/TextRenderer$Drawer;minBackgroundX:F
intermediary field_60703
Lnet/minecraft/class_327$class_5232;field_60703:F
official k
Lfwy$d;k:F
-
minBackgroundY
private float minBackgroundY- Mappings:
Namespace Name Mixin selector named minBackgroundY
Lnet/minecraft/client/font/TextRenderer$Drawer;minBackgroundY:F
intermediary field_60704
Lnet/minecraft/class_327$class_5232;field_60704:F
official l
Lfwy$d;l:F
-
maxBackgroundX
private float maxBackgroundX- Mappings:
Namespace Name Mixin selector named maxBackgroundX
Lnet/minecraft/client/font/TextRenderer$Drawer;maxBackgroundX:F
intermediary field_60705
Lnet/minecraft/class_327$class_5232;field_60705:F
official m
Lfwy$d;m:F
-
maxBackgroundY
private float maxBackgroundY- Mappings:
Namespace Name Mixin selector named maxBackgroundY
Lnet/minecraft/client/font/TextRenderer$Drawer;maxBackgroundY:F
intermediary field_60706
Lnet/minecraft/class_327$class_5232;field_60706:F
official n
Lfwy$d;n:F
-
drawnGlyphs
- Mappings:
Namespace Name Mixin selector named drawnGlyphs
Lnet/minecraft/client/font/TextRenderer$Drawer;drawnGlyphs:Ljava/util/List;
intermediary field_60707
Lnet/minecraft/class_327$class_5232;field_60707:Ljava/util/List;
official o
Lfwy$d;o:Ljava/util/List;
-
rectangles
- Mappings:
Namespace Name Mixin selector named rectangles
Lnet/minecraft/client/font/TextRenderer$Drawer;rectangles:Ljava/util/List;
intermediary field_24252
Lnet/minecraft/class_327$class_5232;field_24252:Ljava/util/List;
official p
Lfwy$d;p:Ljava/util/List;
-
-
Constructor Details
-
Drawer
public Drawer(float x, float y, int color, boolean shadow) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/font/TextRenderer$Drawer;<init>(Lnet/minecraft/client/font/TextRenderer;FFIZ)V
intermediary <init>
Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;FFIZ)V
official <init>
Lfwy$d;<init>(Lfwy;FFIZ)V
-
Drawer
public Drawer(float x, float y, int color, int backgroundColor, boolean shadow) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/font/TextRenderer$Drawer;<init>(Lnet/minecraft/client/font/TextRenderer;FFIIZ)V
intermediary <init>
Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;FFIIZ)V
official <init>
Lfwy$d;<init>(Lfwy;FFIIZ)V
-
-
Method Details
-
updateTextBounds
private void updateTextBounds(float minX, float minY, float maxX, float maxY) - Mappings:
Namespace Name Mixin selector named updateTextBounds
Lnet/minecraft/client/font/TextRenderer$Drawer;updateTextBounds(FFFF)V
intermediary method_71803
Lnet/minecraft/class_327$class_5232;method_71803(FFFF)V
official a
Lfwy$d;a(FFFF)V
-
updateBackgroundBounds
private void updateBackgroundBounds(float x, float y, float width) - Mappings:
Namespace Name Mixin selector named updateBackgroundBounds
Lnet/minecraft/client/font/TextRenderer$Drawer;updateBackgroundBounds(FFF)V
intermediary method_71802
Lnet/minecraft/class_327$class_5232;method_71802(FFF)V
official a
Lfwy$d;a(FFF)V
-
addGlyph
- Mappings:
Namespace Name Mixin selector named addGlyph
Lnet/minecraft/client/font/TextRenderer$Drawer;addGlyph(Lnet/minecraft/client/font/BakedGlyph$DrawnGlyph;)V
intermediary method_71804
Lnet/minecraft/class_327$class_5232;method_71804(Lnet/minecraft/class_382$class_10364;)V
official a
Lfwy$d;a(Lgar$b;)V
-
addRectangle
- Mappings:
Namespace Name Mixin selector named addRectangle
Lnet/minecraft/client/font/TextRenderer$Drawer;addRectangle(Lnet/minecraft/client/font/BakedGlyph$Rectangle;)V
intermediary method_27532
Lnet/minecraft/class_327$class_5232;method_27532(Lnet/minecraft/class_382$class_328;)V
official a
Lfwy$d;a(Lgar$a;)V
-
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
Lbbn;accept(ILyl;I)Z
-
draw
- Specified by:
draw
in interfaceTextRenderer.GlyphDrawable
- Mappings:
Namespace Name Mixin selector named draw
Lnet/minecraft/client/font/TextRenderer$GlyphDrawable;draw(Lnet/minecraft/client/font/TextRenderer$GlyphDrawer;)V
intermediary method_71801
Lnet/minecraft/class_327$class_11465;method_71801(Lnet/minecraft/class_327$class_11464;)V
official a
Lfwy$c;a(Lfwy$b;)V
-
getRenderColor
- Mappings:
Namespace Name Mixin selector named getRenderColor
Lnet/minecraft/client/font/TextRenderer$Drawer;getRenderColor(Lnet/minecraft/text/TextColor;)I
intermediary method_65178
Lnet/minecraft/class_327$class_5232;method_65178(Lnet/minecraft/class_5251;)I
official a
Lfwy$d;a(Lyn;)I
-
getShadowColor
- Mappings:
Namespace Name Mixin selector named getShadowColor
Lnet/minecraft/client/font/TextRenderer$Drawer;getShadowColor(Lnet/minecraft/text/Style;I)I
intermediary method_65177
Lnet/minecraft/class_327$class_5232;method_65177(Lnet/minecraft/class_2583;I)I
official a
Lfwy$d;a(Lyl;I)I
-
getScreenRect
- Specified by:
getScreenRect
in interfaceTextRenderer.GlyphDrawable
- Mappings:
Namespace Name Mixin selector named getScreenRect
Lnet/minecraft/client/font/TextRenderer$GlyphDrawable;getScreenRect()Lnet/minecraft/client/gui/ScreenRect;
intermediary method_71800
Lnet/minecraft/class_327$class_11465;method_71800()Lnet/minecraft/class_8030;
official a
Lfwy$c;a()Lgcc;
-