Interface GeometryProducer

All Known Implementing Classes:
BoxProducer, MeshProducer

public interface GeometryProducer
Pluggable interface to create new geometry in block generation
  • Method Details

    • generateBlock

      void generateBlock(int blockId, GeometryHandler geometryHandler, BlockProvider blockProvider, BlockUtil blockUtil, int x, int y, int z)
      Parameters:
      blockId - ID of block to generate geometry for
      geometryHandler - geometry handler to use for setting geometry data
      blockProvider - blockprovider can give access to neighbouring blocks etc
      blockUtil - block util gives information about a block, tile texture coords etc
      x - world space x position
      y - world space y position
      z - world space z position