net.minecraft.client.font

class TextRenderer$Drawer

implements TextRenderer$GlyphDrawable, CharacterVisitor

net.minecraft.client.gui.Font$PreparedTextBuilder
net.minecraft.class_327$class_5232
net.minecraft.client.font.TextRenderer$Drawer

Field summary

Modifier and TypeField
private final boolean
drawShadow
field_24241
shadow
private final int
color
field_54817
color
private final int
backgroundColor
field_54818
backgroundColor
private final boolean
includeEmpty
field_63844
trackEmpty
private float
x
field_24250
x
private float
y
field_24251
y
private float
left
field_60699
minX
private float
top
field_60700
minY
private float
right
field_60701
maxX
private float
bottom
field_60702
maxY
private float
backgroundLeft
field_60703
minBackgroundX
private float
backgroundTop
field_60704
minBackgroundY
private float
backgroundRight
field_60705
maxBackgroundX
private float
backgroundBottom
field_60706
maxBackgroundY
private final List<TextDrawable$DrawnGlyphRect>
glyphs
field_60707
drawnGlyphs
private List<TextDrawable>
effects
field_24252
rectangles
private List<EmptyGlyphRect>
emptyAreas
field_63845
emptyGlyphRects
final TextRenderer
this$0
field_24240
field_24240

Constructor summary

ModifierConstructor
public (TextRenderer this$0, float x, float y, int color, boolean shadow, boolean trackEmpty)
public (TextRenderer this$0, float x, float y, int color, int backgroundColor, boolean shadow, boolean trackEmpty)

Method summary

Modifier and TypeMethod
private void
markSize(float left, float top, float right, float bottom)
method_71803(float arg0, float arg1, float arg2, float arg3)
updateTextBounds(float minX, float minY, float maxX, float maxY)
private void
markBackground(float x, float y, float advance)
method_71802(float arg0, float arg1, float arg2)
updateBackgroundBounds(float x, float y, float width)
private void
addGlyph(TextRenderable$Styled instance)
method_71804(class_11767$class_12238 arg0)
addGlyph(TextDrawable$DrawnGlyphRect glyph)
private void
addEffect(TextRenderable effect)
method_27532(class_11767 arg0)
addRectangle(TextDrawable rectangle)
private void
addEmptyGlyph(EmptyArea empty)
method_75783(class_12237 arg0)
addEmptyGlyphRect(EmptyGlyphRect rect)
public boolean
accept(int position, Style style, int c)
method_1_42(int arg0, class_2583 arg1, int arg2)
accept(int arg0, Style arg1, int arg2)
public boolean
accept(int position, Style style, BakedGlyph glyph)
method_72733(int arg0, class_2583 arg1, class_11768 arg2)
accept(int index, Style style, BakedGlyph glyph)
public void
visit(Font$GlyphVisitor visitor)
method_71801(class_327$class_11464 arg0)
draw(TextRenderer$GlyphDrawer arg0)
private int
getTextColor(TextColor textColor)
method_65178(class_5251 arg0)
getRenderColor(TextColor override)
private int
getShadowColor(Style style, int textColor)
method_65177(class_2583 arg0, int arg1)
getShadowColor(Style style, int textColor)
public ScreenRect
bounds()
method_71800()
getScreenRect()