Package com.rvandoosselaer.blocks
Interface ChunkMeshGenerator
-
- All Known Implementing Classes:
FacesMeshGenerator
public interface ChunkMeshGenerator
The contract for a chunk mesh implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createAndSetNodeAndCollisionMesh(Chunk chunk)
Create the node and the collision mesh for the chunk.com.jme3.scene.Mesh
createCollisionMesh(Chunk chunk)
Create the collision mesh for the chunk.com.jme3.scene.Node
createNode(Chunk chunk)
Create the node for the chunk.
-
-
-
Method Detail
-
createNode
com.jme3.scene.Node createNode(Chunk chunk)
Create the node for the chunk.- Parameters:
chunk
- to create the node for- Returns:
- the node holding all chunk geometries
-
createCollisionMesh
com.jme3.scene.Mesh createCollisionMesh(Chunk chunk)
Create the collision mesh for the chunk.- Parameters:
chunk
- to create the collision mesh for- Returns:
- the collision mesh of the chunk
-
createAndSetNodeAndCollisionMesh
void createAndSetNodeAndCollisionMesh(Chunk chunk)
Create the node and the collision mesh for the chunk. The node and collision mesh should be set on the chunk. This is a combination of thecreateNode(Chunk)
andcreateCollisionMesh(Chunk)
methods.- Parameters:
chunk
-
-
-