Package com.rvandoosselaer.blocks
Interface ChunkMeshGenerator
- All Known Implementing Classes:
FacesMeshGenerator
public interface ChunkMeshGenerator
The contract for a chunk mesh implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
createNode
Create the node for the chunk.- Parameters:
chunk
- to create the node for- Returns:
- the node holding all chunk geometries
-
createCollisionMesh
Create the collision mesh for the chunk.- Parameters:
chunk
- to create the collision mesh for- Returns:
- the collision mesh of the chunk
-
createAndSetNodeAndCollisionMesh
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
-
-