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 IVertexConsumerpublic void put(int e,
float... data)
put in interface IVertexConsumerprivate void checkVertexFormat()
public void setBuffer(BufferBuilder buffer)
public void setOffset(BlockPos offset)
public void setQuadTint(int tint)
setQuadTint in interface IVertexConsumerpublic void setQuadOrientation(EnumFacing orientation)
setQuadOrientation in interface IVertexConsumerpublic void setApplyDiffuseLighting(boolean diffuse)
setApplyDiffuseLighting in interface IVertexConsumerpublic void setTexture(TextureAtlasSprite texture)
setTexture in interface IVertexConsumer