Class BoxProducer

java.lang.Object
com.ardorcraft.util.geometryproducers.BoxProducer
All Implemented Interfaces:
GeometryProducer

public final class BoxProducer extends Object implements GeometryProducer
Main blockworld geometry producer. Produces standard 1x1x1 boxes with hidden surface removal.
  • Constructor Details

    • BoxProducer

      public BoxProducer()
  • Method Details

    • generateBlock

      public void generateBlock(int blockId, GeometryHandler geometryHandler, BlockProvider provider, BlockUtil blockUtil, int x, int y, int z)
      Specified by:
      generateBlock in interface GeometryProducer
      Parameters:
      blockId - ID of block to generate geometry for
      geometryHandler - geometry handler to use for setting geometry data
      provider - 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