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
    forEach​(Consumer<QuadView> consumer)
    Use to access all of the quads encoded in this mesh.
  • 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 threadlocal/reused and should never be retained by the consumer.