Class QuadTransformer

java.lang.Object
net.minecraftforge.client.model.QuadTransformer

public class QuadTransformer extends Object
  • Field Details

    • POSITION

      private static final int POSITION
    • NORMAL

      private static final int NORMAL
    • transform

      private final Transformation transform
  • Constructor Details

    • QuadTransformer

      public QuadTransformer(Transformation transform)
  • 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

      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 List<BakedQuad> processMany(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(List<BakedQuad> inputs)
      Processes multiple quads in place, modifying the input quads.
      Parameters:
      inputs - The list of quads to transform