Class VertexConsumerWrapper
java.lang.Object
net.minecraftforge.client.model.pipeline.VertexConsumerWrapper
- All Implemented Interfaces:
VertexConsumer,IForgeVertexConsumer
- Direct Known Subclasses:
TransformingVertexPipeline
Wrapper for
VertexConsumer which delegates all operations to its parent.
Useful for defining custom pipeline elements that only process certain data.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor(int r, int g, int b, int a) voiddefaultColor(int r, int g, int b, int a) voidmisc(VertexFormatElement element, int... values) Consumes an unknownVertexFormatElementas a raw int data array.normal(float x, float y, float z) overlayCoords(int u, int v) voiduv(float u, float v) uv2(int u, int v) vertex(double x, double y, double z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.client.extensions.IForgeVertexConsumer
applyBakedLighting, applyBakedNormals, putBulkDataMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
color, color, normal, overlayCoords, putBulkData, putBulkData, putBulkData, uv2, vertex, vertex
-
Field Details
-
parent
-
-
Constructor Details
-
VertexConsumerWrapper
-
-
Method Details
-
vertex
- Specified by:
vertexin interfaceVertexConsumer
-
color
- Specified by:
colorin interfaceVertexConsumer
-
uv
- Specified by:
uvin interfaceVertexConsumer
-
overlayCoords
- Specified by:
overlayCoordsin interfaceVertexConsumer
-
uv2
- Specified by:
uv2in interfaceVertexConsumer
-
normal
- Specified by:
normalin interfaceVertexConsumer
-
misc
Description copied from interface:IForgeVertexConsumerConsumes an unknownVertexFormatElementas a raw int data array.If the consumer needs to store the data for later use, it must copy it. There are no guarantees on immutability.
- Specified by:
miscin interfaceIForgeVertexConsumer
-
endVertex
public void endVertex()- Specified by:
endVertexin interfaceVertexConsumer
-
defaultColor
public void defaultColor(int r, int g, int b, int a) - Specified by:
defaultColorin interfaceVertexConsumer
-
unsetDefaultColor
public void unsetDefaultColor()- Specified by:
unsetDefaultColorin interfaceVertexConsumer
-