Interface IPipelineConsumer

All Superinterfaces:
IVertexConsumer
All Known Implementing Classes:
QuadAlphaOverride, QuadClamper, QuadCornerKicker, QuadFaceStripper, QuadReInterpolator, QuadTinter, QuadTransformer

public interface IPipelineConsumer extends IVertexConsumer
Anything implementing this may be used in the BakedPipeline.
  • Method Details

    • setInputQuad

      void setInputQuad(Quad quad)
      The quad at the start of the transformation. This is useful for obtaining the vertex data before any transformations have been applied, such as interpolation, See QuadReInterpolator. When overriding this make sure you call setInputQuad on your parent consumer too.
      Parameters:
      quad - The quad.
    • reset

      void reset(CachedFormat format)
      Resets the Consumer to the new format. This should resize any internal arrays if needed, ready for the new vertex data.
      Parameters:
      format - The format to reset to.
    • setParent

      void setParent(@Nullable @Nullable IVertexConsumer parent)
      Sets the parent consumer. This consumer may choose to not pipe any data, that's fine, but if it does, it MUST pipe the data to the one provided here.
      Parameters:
      parent - The parent.