Class VertexBufferConsumer
- java.lang.Object
-
- net.minecraftforge.client.model.pipeline.VertexBufferConsumer
-
- All Implemented Interfaces:
IVertexConsumer
public class VertexBufferConsumer extends java.lang.Object implements IVertexConsumer
Assumes VertexFormatElement is present in the BufferBuilder's vertex format.
-
-
Field Summary
Fields Modifier and Type Field Description private IVertexBuilder
renderer
-
Constructor Summary
Constructors Constructor Description VertexBufferConsumer()
VertexBufferConsumer(IVertexBuilder buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
renderer
private IVertexBuilder renderer
-
-
Constructor Detail
-
VertexBufferConsumer
public VertexBufferConsumer()
-
VertexBufferConsumer
public VertexBufferConsumer(IVertexBuilder buffer)
-
-
Method Detail
-
getVertexFormat
public final VertexFormat getVertexFormat()
- Specified by:
getVertexFormat
in interfaceIVertexConsumer
- Returns:
- the format that should be used for passed data.
-
put
public void put(int e, float... data)
- Specified by:
put
in interfaceIVertexConsumer
-
setBuffer
public void setBuffer(IVertexBuilder buffer)
-
setQuadTint
public void setQuadTint(int tint)
- Specified by:
setQuadTint
in interfaceIVertexConsumer
-
setQuadOrientation
public void setQuadOrientation(Direction orientation)
- Specified by:
setQuadOrientation
in interfaceIVertexConsumer
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse)
- Specified by:
setApplyDiffuseLighting
in interfaceIVertexConsumer
-
setTexture
public void setTexture(TextureAtlasSprite texture)
- Specified by:
setTexture
in interfaceIVertexConsumer
-
-