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$Drawerintermediary net/minecraft/class_327$class_5232official fwz$d
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int(package private) final List<BakedGlyph.DrawnGlyph> private floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate floatprivate @Nullable List<BakedGlyph.Rectangle> private final boolean(package private) float(package private) float - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanVisits a single character.private voidaddGlyph(BakedGlyph.DrawnGlyph glyph) private voidaddRectangle(BakedGlyph.Rectangle rectangle) voiddraw(TextRenderer.GlyphDrawer glyphDrawer) private intgetRenderColor(@Nullable TextColor override) private intgetShadowColor(Style style, int textColor) private voidupdateBackgroundBounds(float x, float y, float width) private voidupdateTextBounds(float minX, float minY, float maxX, float maxY)  
- 
Field Details
- 
shadow
private final boolean shadow- Mappings:
 Namespace Name Mixin selector named shadowLnet/minecraft/client/font/TextRenderer$Drawer;shadow:Zintermediary field_24241Lnet/minecraft/class_327$class_5232;field_24241:Zofficial bLfwz$d;b:Z
 - 
color
private final int color- Mappings:
 Namespace Name Mixin selector named colorLnet/minecraft/client/font/TextRenderer$Drawer;color:Iintermediary field_54817Lnet/minecraft/class_327$class_5232;field_54817:Iofficial cLfwz$d;c:I
 - 
backgroundColor
private final int backgroundColor- Mappings:
 Namespace Name Mixin selector named backgroundColorLnet/minecraft/client/font/TextRenderer$Drawer;backgroundColor:Iintermediary field_54818Lnet/minecraft/class_327$class_5232;field_54818:Iofficial dLfwz$d;d:I
 - 
x
float x- Mappings:
 Namespace Name Mixin selector named xLnet/minecraft/client/font/TextRenderer$Drawer;x:Fintermediary field_24250Lnet/minecraft/class_327$class_5232;field_24250:Fofficial eLfwz$d;e:F
 - 
y
float y- Mappings:
 Namespace Name Mixin selector named yLnet/minecraft/client/font/TextRenderer$Drawer;y:Fintermediary field_24251Lnet/minecraft/class_327$class_5232;field_24251:Fofficial fLfwz$d;f:F
 - 
minX
private float minX- Mappings:
 Namespace Name Mixin selector named minXLnet/minecraft/client/font/TextRenderer$Drawer;minX:Fintermediary field_60699Lnet/minecraft/class_327$class_5232;field_60699:Fofficial gLfwz$d;g:F
 - 
minY
private float minY- Mappings:
 Namespace Name Mixin selector named minYLnet/minecraft/client/font/TextRenderer$Drawer;minY:Fintermediary field_60700Lnet/minecraft/class_327$class_5232;field_60700:Fofficial hLfwz$d;h:F
 - 
maxX
private float maxX- Mappings:
 Namespace Name Mixin selector named maxXLnet/minecraft/client/font/TextRenderer$Drawer;maxX:Fintermediary field_60701Lnet/minecraft/class_327$class_5232;field_60701:Fofficial iLfwz$d;i:F
 - 
maxY
private float maxY- Mappings:
 Namespace Name Mixin selector named maxYLnet/minecraft/client/font/TextRenderer$Drawer;maxY:Fintermediary field_60702Lnet/minecraft/class_327$class_5232;field_60702:Fofficial jLfwz$d;j:F
 - 
minBackgroundX
private float minBackgroundX- Mappings:
 Namespace Name Mixin selector named minBackgroundXLnet/minecraft/client/font/TextRenderer$Drawer;minBackgroundX:Fintermediary field_60703Lnet/minecraft/class_327$class_5232;field_60703:Fofficial kLfwz$d;k:F
 - 
minBackgroundY
private float minBackgroundY- Mappings:
 Namespace Name Mixin selector named minBackgroundYLnet/minecraft/client/font/TextRenderer$Drawer;minBackgroundY:Fintermediary field_60704Lnet/minecraft/class_327$class_5232;field_60704:Fofficial lLfwz$d;l:F
 - 
maxBackgroundX
private float maxBackgroundX- Mappings:
 Namespace Name Mixin selector named maxBackgroundXLnet/minecraft/client/font/TextRenderer$Drawer;maxBackgroundX:Fintermediary field_60705Lnet/minecraft/class_327$class_5232;field_60705:Fofficial mLfwz$d;m:F
 - 
maxBackgroundY
private float maxBackgroundY- Mappings:
 Namespace Name Mixin selector named maxBackgroundYLnet/minecraft/client/font/TextRenderer$Drawer;maxBackgroundY:Fintermediary field_60706Lnet/minecraft/class_327$class_5232;field_60706:Fofficial nLfwz$d;n:F
 - 
drawnGlyphs
- Mappings:
 Namespace Name Mixin selector named drawnGlyphsLnet/minecraft/client/font/TextRenderer$Drawer;drawnGlyphs:Ljava/util/List;intermediary field_60707Lnet/minecraft/class_327$class_5232;field_60707:Ljava/util/List;official oLfwz$d;o:Ljava/util/List;
 - 
rectangles
- Mappings:
 Namespace Name Mixin selector named rectanglesLnet/minecraft/client/font/TextRenderer$Drawer;rectangles:Ljava/util/List;intermediary field_24252Lnet/minecraft/class_327$class_5232;field_24252:Ljava/util/List;official pLfwz$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)Vintermediary <init>Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;FFIZ)Vofficial <init>Lfwz$d;<init>(Lfwz;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)Vintermediary <init>Lnet/minecraft/class_327$class_5232;<init>(Lnet/minecraft/class_327;FFIIZ)Vofficial <init>Lfwz$d;<init>(Lfwz;FFIIZ)V
 
 - 
 - 
Method Details
- 
updateTextBounds
private void updateTextBounds(float minX, float minY, float maxX, float maxY) - Mappings:
 Namespace Name Mixin selector named updateTextBoundsLnet/minecraft/client/font/TextRenderer$Drawer;updateTextBounds(FFFF)Vintermediary method_71803Lnet/minecraft/class_327$class_5232;method_71803(FFFF)Vofficial aLfwz$d;a(FFFF)V
 - 
updateBackgroundBounds
private void updateBackgroundBounds(float x, float y, float width) - Mappings:
 Namespace Name Mixin selector named updateBackgroundBoundsLnet/minecraft/client/font/TextRenderer$Drawer;updateBackgroundBounds(FFF)Vintermediary method_71802Lnet/minecraft/class_327$class_5232;method_71802(FFF)Vofficial aLfwz$d;a(FFF)V
 - 
addGlyph
- Mappings:
 Namespace Name Mixin selector named addGlyphLnet/minecraft/client/font/TextRenderer$Drawer;addGlyph(Lnet/minecraft/client/font/BakedGlyph$DrawnGlyph;)Vintermediary method_71804Lnet/minecraft/class_327$class_5232;method_71804(Lnet/minecraft/class_382$class_10364;)Vofficial aLfwz$d;a(Lgas$b;)V
 - 
addRectangle
- Mappings:
 Namespace Name Mixin selector named addRectangleLnet/minecraft/client/font/TextRenderer$Drawer;addRectangle(Lnet/minecraft/client/font/BakedGlyph$Rectangle;)Vintermediary method_27532Lnet/minecraft/class_327$class_5232;method_27532(Lnet/minecraft/class_382$class_328;)Vofficial aLfwz$d;a(Lgas$a;)V
 - 
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 acceptLbbn;accept(ILyl;I)Z
 - 
draw
- Specified by:
 drawin interfaceTextRenderer.GlyphDrawable- Mappings:
 Namespace Name Mixin selector named drawLnet/minecraft/client/font/TextRenderer$GlyphDrawable;draw(Lnet/minecraft/client/font/TextRenderer$GlyphDrawer;)Vintermediary method_71801Lnet/minecraft/class_327$class_11465;method_71801(Lnet/minecraft/class_327$class_11464;)Vofficial aLfwz$c;a(Lfwz$b;)V
 - 
getRenderColor
- Mappings:
 Namespace Name Mixin selector named getRenderColorLnet/minecraft/client/font/TextRenderer$Drawer;getRenderColor(Lnet/minecraft/text/TextColor;)Iintermediary method_65178Lnet/minecraft/class_327$class_5232;method_65178(Lnet/minecraft/class_5251;)Iofficial aLfwz$d;a(Lyn;)I
 - 
getShadowColor
- Mappings:
 Namespace Name Mixin selector named getShadowColorLnet/minecraft/client/font/TextRenderer$Drawer;getShadowColor(Lnet/minecraft/text/Style;I)Iintermediary method_65177Lnet/minecraft/class_327$class_5232;method_65177(Lnet/minecraft/class_2583;I)Iofficial aLfwz$d;a(Lyl;I)I
 - 
getScreenRect
- Specified by:
 getScreenRectin interfaceTextRenderer.GlyphDrawable- Mappings:
 Namespace Name Mixin selector named getScreenRectLnet/minecraft/client/font/TextRenderer$GlyphDrawable;getScreenRect()Lnet/minecraft/client/gui/ScreenRect;intermediary method_71800Lnet/minecraft/class_327$class_11465;method_71800()Lnet/minecraft/class_8030;official aLfwz$c;a()Lgcd;
 
 -