public class VertexBufferConsumer extends java.lang.Object implements IVertexConsumer
Modifier and Type | Field and Description |
---|---|
private static float[] |
dummyColor |
private BlockPos |
offset |
private int[] |
quadData |
private BufferBuilder |
renderer |
private int |
v |
Constructor and Description |
---|
VertexBufferConsumer() |
VertexBufferConsumer(BufferBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
private void |
checkVertexFormat() |
VertexFormat |
getVertexFormat() |
void |
put(int e,
float... data) |
void |
setApplyDiffuseLighting(boolean diffuse) |
void |
setBuffer(BufferBuilder buffer) |
void |
setOffset(BlockPos offset) |
void |
setQuadOrientation(EnumFacing orientation) |
void |
setQuadTint(int tint) |
void |
setTexture(TextureAtlasSprite texture) |
private static final float[] dummyColor
private BufferBuilder renderer
private int[] quadData
private int v
private BlockPos offset
public VertexBufferConsumer()
public VertexBufferConsumer(BufferBuilder buffer)
public VertexFormat getVertexFormat()
getVertexFormat
in interface IVertexConsumer
public void put(int e, float... data)
put
in interface IVertexConsumer
private void checkVertexFormat()
public void setBuffer(BufferBuilder buffer)
public void setOffset(BlockPos offset)
public void setQuadTint(int tint)
setQuadTint
in interface IVertexConsumer
public void setQuadOrientation(EnumFacing orientation)
setQuadOrientation
in interface IVertexConsumer
public void setApplyDiffuseLighting(boolean diffuse)
setApplyDiffuseLighting
in interface IVertexConsumer
public void setTexture(TextureAtlasSprite texture)
setTexture
in interface IVertexConsumer