public class VertexBufferConsumer extends java.lang.Object implements IVertexConsumer
Modifier and Type | Field and Description |
---|---|
private IVertexBuilder |
renderer |
Constructor and Description |
---|
VertexBufferConsumer() |
VertexBufferConsumer(IVertexBuilder buffer) |
Modifier and Type | Method and Description |
---|---|
VertexFormat |
getVertexFormat() |
void |
put(int e,
float... data) |
void |
setApplyDiffuseLighting(boolean diffuse) |
void |
setBuffer(IVertexBuilder buffer) |
void |
setQuadOrientation(Direction orientation) |
void |
setQuadTint(int tint) |
void |
setTexture(TextureAtlasSprite texture) |
private IVertexBuilder renderer
public VertexBufferConsumer()
public VertexBufferConsumer(IVertexBuilder buffer)
public final VertexFormat getVertexFormat()
getVertexFormat
in interface IVertexConsumer
public void put(int e, float... data)
put
in interface IVertexConsumer
public void setBuffer(IVertexBuilder buffer)
public void setQuadTint(int tint)
setQuadTint
in interface IVertexConsumer
public void setQuadOrientation(Direction orientation)
setQuadOrientation
in interface IVertexConsumer
public void setApplyDiffuseLighting(boolean diffuse)
setApplyDiffuseLighting
in interface IVertexConsumer
public void setTexture(TextureAtlasSprite texture)
setTexture
in interface IVertexConsumer