Interface GeometryProducer
- All Known Implementing Classes:
BoxProducer
,MeshProducer
public interface GeometryProducer
Pluggable interface to create new geometry in block generation
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generateBlock
(int blockId, GeometryHandler geometryHandler, BlockProvider blockProvider, BlockUtil blockUtil, int x, int y, int z)
-
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 forgeometryHandler
- geometry handler to use for setting geometry datablockProvider
- 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
-