Package net.minecraftforge.client.model
Class QuadTransformer
java.lang.Object
net.minecraftforge.client.model.QuadTransformer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final Transformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
private static int
private static int
getAtByteOffset
(int[] inData, int offset) processMany
(List<BakedQuad> inputs) Processes multiple quads, producing a new array of new quads.void
processManyInPlace
(List<BakedQuad> inputs) Processes multiple quads in place, modifying the input quads.processOne
(BakedQuad input) Processes a single quad, producing a new quad.processOneInPlace
(BakedQuad input) Processes a single quad, modifying the input quad.private void
processVertices
(int[] inData, int[] outData) private static void
putAtByteOffset
(int[] outData, int offset, int value)
-
Field Details
-
POSITION
private static final int POSITION -
NORMAL
private static final int NORMAL -
transform
-
-
Constructor Details
-
QuadTransformer
-
-
Method Details
-
processVertices
private void processVertices(int[] inData, int[] outData) -
getAtByteOffset
private static int getAtByteOffset(int[] inData, int offset) -
putAtByteOffset
private static void putAtByteOffset(int[] outData, int offset, int value) -
findPositionOffset
-
findNormalOffset
-
processOne
Processes a single quad, producing a new quad.- Parameters:
input
- A single quad to transform.- Returns:
- A new BakedQuad object with the new position.
-
processOneInPlace
Processes a single quad, modifying the input quad.- Parameters:
input
- A single quad to transform.- Returns:
- The input BakedQuad object with the new position applied.
-
processMany
Processes multiple quads, producing a new array of new quads.- Parameters:
inputs
- The list of quads to transform- Returns:
- A new array of new BakedQuad objects.
-
processManyInPlace
Processes multiple quads in place, modifying the input quads.- Parameters:
inputs
- The list of quads to transform
-