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
Modifier and TypeFieldDescriptionprivate List<VertexFormatElement>
private VertexFormat
private int
private int
private boolean
private VertexConsumer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal VertexFormat
void
put
(int e, float... data) void
setApplyDiffuseLighting
(boolean diffuse) void
setBuffer
(VertexConsumer buffer) void
setPackedOverlay
(int packedOverlay) void
setQuadOrientation
(Direction orientation) void
setQuadTint
(int tint) void
setTexture
(TextureAtlasSprite texture) void
setVertexFormat
(@Nullable VertexFormat format)
-
Field Details
-
format
-
elements
-
renderer
-
overrideOverlayCoords
private boolean overrideOverlayCoords -
overlayCoordU
private int overlayCoordU -
overlayCoordV
private int overlayCoordV
-
-
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
-
setVertexFormat
-
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
-
setPackedOverlay
public void setPackedOverlay(int packedOverlay)
-