Class VertexBufferConsumer
java.lang.Object
net.minecraftforge.client.model.pipeline.VertexBufferConsumer
- All Implemented Interfaces:
IVertexConsumer
Assumes VertexFormatElement is present in the BufferBuilder's vertex format.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal VertexFormat
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 Details
-
renderer
-
-
Constructor Details
-
VertexBufferConsumer
public VertexBufferConsumer() -
VertexBufferConsumer
-
-
Method Details
-
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
-
setQuadTint
public void setQuadTint(int tint) - Specified by:
setQuadTint
in interfaceIVertexConsumer
-
setQuadOrientation
- Specified by:
setQuadOrientation
in interfaceIVertexConsumer
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse) - Specified by:
setApplyDiffuseLighting
in interfaceIVertexConsumer
-
setTexture
- Specified by:
setTexture
in interfaceIVertexConsumer
-