Class RemappingVertexPipeline
java.lang.Object
net.neoforged.neoforge.client.model.pipeline.RemappingVertexPipeline
- All Implemented Interfaces:
VertexConsumer,IVertexConsumerExtension
Vertex pipeline element that remaps incoming data to another format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private static final int[]private static final Set<VertexFormatElement> private floatprivate final int[][]private final Map<VertexFormatElement, Integer> private final Vector3fprivate final VertexConsumerprivate final Vector3fprivate final VertexFormatprivate final float[]private final int[]private final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float x, float y, float z) voidmisc(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.client.extensions.IVertexConsumerExtension
applyBakedNormalsMethods inherited from interface com.mojang.blaze3d.vertex.VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBulkData, putBulkData, setColor, setLight, setNormal, setNormal, setOverlay
-
Field Details
-
KNOWN_ELEMENTS
-
EMPTY_INT_ARRAY
private static final int[] EMPTY_INT_ARRAY -
parent
-
targetFormat
-
position
-
normal
-
color
private final int[] color -
uv0
private final float[] uv0 -
uv1
private final int[] uv1 -
uv2
private final int[] uv2 -
lineWidth
private float lineWidth -
miscElementIds
-
misc
private final int[][] misc
-
-
Constructor Details
-
RemappingVertexPipeline
-
-
Method Details
-
addVertex
- Specified by:
addVertexin interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin 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
-
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
-
setLineWidth
- Specified by:
setLineWidthin interfaceVertexConsumer
-
endVertex
public void endVertex()
-