Class VertexConsumerWrapper
java.lang.Object
net.neoforged.neoforge.client.model.pipeline.VertexConsumerWrapper
- All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
- 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 TypeMethodDescriptionaddVertex(float x, float y, float z) misc(VertexFormatElement element, int... values) Consumes an unknownVertexFormatElementas a raw int data array.setColor(int packedColor) setColor(int r, int g, int b, int a) setLineWidth(float lineWidth) setNormal(float x, float y, float z) setUv(float u, float v) setUv1(int u, int v) setUv2(int u, int v) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IVertexConsumerExtension
applyBakedNormals, putBulkData, putBulkDataMethods inherited from interface VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBulkData, setColor, setLight, setNormal, setNormal, setOverlay
-
Field Details
-
parent
-
-
Constructor Details
-
VertexConsumerWrapper
-
-
Method Details
-
addVertex
- Specified by:
addVertexin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setUv
- Specified by:
setUvin interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin interfaceVertexConsumer
-
setLineWidth
- Specified by:
setLineWidthin interfaceVertexConsumer
-
misc
Description copied from interface:IVertexConsumerExtensionConsumes 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 interfaceIVertexConsumerExtension
-