@Environment(value=CLIENT) public class SpriteTexturedVertexConsumer extends Object implements VertexConsumer
| Modifier and Type | Field and Description |
|---|---|
private VertexConsumer |
parent |
private Sprite |
sprite |
LOGGER| Constructor and Description |
|---|
SpriteTexturedVertexConsumer(VertexConsumer parent,
Sprite sprite) |
| Modifier and Type | Method and Description |
|---|---|
VertexConsumer |
color(int red,
int green,
int blue,
int alpha) |
VertexConsumer |
light(int u,
int v) |
void |
next() |
VertexConsumer |
normal(float x,
float y,
float z) |
VertexConsumer |
overlay(int u,
int v) |
VertexConsumer |
texture(float u,
float v) |
VertexConsumer |
vertex(double x,
double y,
double z) |
void |
vertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float u,
float v,
int overlay,
int light,
float normalX,
float normalY,
float normalZ) |
private final VertexConsumer parent
private final Sprite sprite
public SpriteTexturedVertexConsumer(VertexConsumer parent, Sprite sprite)
public VertexConsumer vertex(double x, double y, double z)
vertex in interface VertexConsumerpublic VertexConsumer color(int red, int green, int blue, int alpha)
color in interface VertexConsumerpublic VertexConsumer texture(float u, float v)
texture in interface VertexConsumerpublic VertexConsumer overlay(int u, int v)
overlay in interface VertexConsumerpublic VertexConsumer light(int u, int v)
light in interface VertexConsumerpublic VertexConsumer normal(float x, float y, float z)
normal in interface VertexConsumerpublic void next()
next in interface VertexConsumerpublic void vertex(float x,
float y,
float z,
float red,
float green,
float blue,
float alpha,
float u,
float v,
int overlay,
int light,
float normalX,
float normalY,
float normalZ)
vertex in interface VertexConsumer