Interface IRenderableSection

All Known Implementing Classes:
SectionRenderDispatcher.RenderSection

public interface IRenderableSection
Describes a chunk section that may be rendered on the GPU. The renderer may choose to reuse a common backing object for this interface under the hood (for performance reasons), so the IRenderableSection and any objects its methods return are not guaranteed to be immutable or valid after exiting the scope in which its provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the bounding box of the section.
    Returns the block position at the origin of the section.
    boolean
    Returns true if the compiled section contains no chunk render layers.
  • Method Details

    • getRenderOrigin

      BlockPos getRenderOrigin()
      Returns the block position at the origin of the section.
      Returns:
      the block position at the origin of the section
    • getBoundingBox

      AABB getBoundingBox()
      Returns the bounding box of the section.
      Returns:
      the bounding box of the section
    • isEmpty

      boolean isEmpty()
      Returns true if the compiled section contains no chunk render layers.
      Returns:
      true if the compiled section contains no chunk render layers