@Environment(value=CLIENT) public class GlyphRenderer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GlyphRenderer.Rectangle |
Modifier and Type | Field and 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 and Description |
---|
GlyphRenderer(RenderLayer textLayer,
RenderLayer seeThroughTextLayer,
float uMin,
float uMax,
float vMin,
float vMax,
float xMin,
float xMax,
float yMin,
float yMax) |
Modifier and Type | Method and 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) |
private final RenderLayer textLayer
private final RenderLayer seeThroughTextLayer
private final float uMin
private final float uMax
private final float vMin
private final float vMax
private final float xMin
private final float xMax
private final float yMin
private final float yMax
public GlyphRenderer(RenderLayer textLayer, RenderLayer seeThroughTextLayer, float uMin, float uMax, float vMin, float vMax, float xMin, float xMax, float yMin, float yMax)
public void draw(boolean italic, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light)
public void drawRectangle(GlyphRenderer.Rectangle rectangle, Matrix4f matrix, VertexConsumer vertexConsumer, int light)
public RenderLayer getLayer(boolean seeThrough)