Package net.minecraft.client.font
Class GlyphRenderer
java.lang.Object
net.minecraft.client.font.GlyphRenderer
- Direct Known Subclasses:
EmptyGlyphRenderer
@Environment(CLIENT) public class GlyphRenderer extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GlyphRenderer.Rectangle
-
Field Summary
Fields Modifier and Type Field Description private RenderLayer
seeThroughTextLayer
private RenderLayer
textLayer
private float
uMax
private float
uMin
private float
vMax
private float
vMin
private float
xMax
private float
xMin
private float
yMax
private float
yMin
-
Constructor Summary
Constructors Constructor Description GlyphRenderer(RenderLayer textLayer, RenderLayer seeThroughTextLayer, float uMin, float uMax, float vMin, float vMax, float xMin, float xMax, float yMin, float yMax)
-
Method Summary
Modifier and Type Method Description void
draw(boolean italic, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light)
void
drawRectangle(GlyphRenderer.Rectangle rectangle, Matrix4f matrix, VertexConsumer vertexConsumer, int light)
RenderLayer
getLayer(boolean seeThrough)
-
Field Details
-
textLayer
-
seeThroughTextLayer
-
uMin
private final float uMin -
uMax
private final float uMax -
vMin
private final float vMin -
vMax
private final float vMax -
xMin
private final float xMin -
xMax
private final float xMax -
yMin
private final float yMin -
yMax
private final float yMax
-
-
Constructor Details
-
GlyphRenderer
public GlyphRenderer(RenderLayer textLayer, RenderLayer seeThroughTextLayer, float uMin, float uMax, float vMin, float vMax, float xMin, float xMax, float yMin, float yMax)
-
-
Method Details
-
draw
public void draw(boolean italic, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light) -
drawRectangle
public void drawRectangle(GlyphRenderer.Rectangle rectangle, Matrix4f matrix, VertexConsumer vertexConsumer, int light) -
getLayer
-