Class BoxProducer
java.lang.Object
com.ardorcraft.util.geometryproducers.BoxProducer
- All Implemented Interfaces:
GeometryProducer
Main blockworld geometry producer. Produces standard 1x1x1 boxes with hidden surface removal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateBlock(int blockId, GeometryHandler geometryHandler, BlockProvider provider, BlockUtil blockUtil, int x, int y, int z)
-
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:
generateBlockin interfaceGeometryProducer- Parameters:
blockId- ID of block to generate geometry forgeometryHandler- geometry handler to use for setting geometry dataprovider- blockprovider can give access to neighbouring blocks etcblockUtil- block util gives information about a block, tile texture coords etcx- world space x positiony- world space y positionz- world space z position
-