public interface Mesh
A bundle of one or more QuadView instances encoded by the renderer, typically via Renderer.meshBuilder().

Similar in purpose to the List<BakedQuad> instances returned by BakedModel, but affords the renderer the ability to optimize the format for performance and memory allocation.

Only the renderer should implement or extend this interface.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Use to access all of the quads encoded in this mesh.
    void
    Outputs all quads in this mesh to the given quad emitter.
  • Method Details

    • forEach

      void forEach(Consumer<QuadView> consumer)
      Use to access all of the quads encoded in this mesh. The quad instances sent to the consumer will likely be thread-local/reused and should never be retained by the consumer.
    • outputTo

      void outputTo(QuadEmitter emitter)
      Outputs all quads in this mesh to the given quad emitter.