Package net.minecraftforge.client.model
Class QuadTransformer
- java.lang.Object
-
- net.minecraftforge.client.model.QuadTransformer
-
public class QuadTransformer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static int
NORMAL
private static int
POSITION
private TransformationMatrix
transform
-
Constructor Summary
Constructors Constructor Description QuadTransformer(TransformationMatrix transform)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
findNormalOffset(VertexFormat fmt)
private static int
findPositionOffset(VertexFormat fmt)
private static int
getAtByteOffset(int[] inData, int offset)
java.util.List<BakedQuad>
processMany(java.util.List<BakedQuad> inputs)
Processes multiple quads, producing a new array of new quads.void
processManyInPlace(java.util.List<BakedQuad> inputs)
Processes multiple quads in place, modifying the input quads.BakedQuad
processOne(BakedQuad input)
Processes a single quad, producing a new quad.BakedQuad
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 Detail
-
POSITION
private static final int POSITION
-
NORMAL
private static final int NORMAL
-
transform
private final TransformationMatrix transform
-
-
Constructor Detail
-
QuadTransformer
public QuadTransformer(TransformationMatrix transform)
-
-
Method Detail
-
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
private static int findPositionOffset(VertexFormat fmt)
-
findNormalOffset
private static int findNormalOffset(VertexFormat fmt)
-
processOne
public BakedQuad processOne(BakedQuad input)
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
public BakedQuad processOneInPlace(BakedQuad input)
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
public java.util.List<BakedQuad> processMany(java.util.List<BakedQuad> inputs)
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
public void processManyInPlace(java.util.List<BakedQuad> inputs)
Processes multiple quads in place, modifying the input quads.- Parameters:
inputs
- The list of quads to transform
-
-