@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 VertexConsumer
public VertexConsumer color(int red, int green, int blue, int alpha)
color
in interface VertexConsumer
public VertexConsumer texture(float u, float v)
texture
in interface VertexConsumer
public VertexConsumer overlay(int u, int v)
overlay
in interface VertexConsumer
public VertexConsumer light(int u, int v)
light
in interface VertexConsumer
public VertexConsumer normal(float x, float y, float z)
normal
in interface VertexConsumer
public void next()
next
in interface VertexConsumer
public 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