Class MeshProducer
java.lang.Object
com.ardorcraft.util.geometryproducers.MeshProducer
- All Implemented Interfaces:
GeometryProducer
GeometryProducer that can take an Ardor3D Mesh as input.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
generateBlock
(int blockId, GeometryHandler geometryHandler, BlockProvider blockProvider, BlockUtil blockUtil, int x, int y, int z) void
setTransformTextureCoords
(boolean value)
-
Constructor Details
-
MeshProducer
-
-
Method Details
-
createOrientations
public void createOrientations() -
setTransformTextureCoords
public void setTransformTextureCoords(boolean value) -
generateBlock
public void generateBlock(int blockId, GeometryHandler geometryHandler, BlockProvider blockProvider, BlockUtil blockUtil, int x, int y, int z) - Specified by:
generateBlock
in interfaceGeometryProducer
- 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
-