Skip to main content

VoxelChunkSpawner

class VoxelChunkSpawner

The Chunks generator for the Voxel system.


public class VoxelChunkSpawner
extends Component

— Constructors (1) —

ConstructorDescription
VoxelChunkSpawner()Creates a new VoxelChunkSpawner.

— Methods (14) —

NameDescription
SpatialObject getCamera()Returns the current camera of the VoxelChunkSpawner.
void setCamera(SpatialObject value)Sets the current camera for the VoxelChunkSpawner.
VoxelChunk getChunkBlueprint()Returns the current blue print chunk of the VoxelChunkSpawner.
void setChunkBlueprint(VoxelChunk value)Sets the VoxelChunkSpawner's current blue print chunk.
int getRenderChunks()Returns the current value of all rendered chunks.
void setRenderChunks(int value)Sets the current value of all rendered chunks.
float getUpdateDelay()Returns the current delay value for updating chunks.
void setUpdateDelay(float value)Sets the current delay value for updating chunks.
float getVisibleDot()Returns the chunk's visible points.
void setVisibleDot(float value)Sets the chunk's visible points.
boolean isDisableRenderBatching()Returns true if batch rendering of the VoxelChunkSpawner is enabled, false if not.
void setDisableRenderBatching(boolean value)Sets whether batch rendering of the VoxelChunkSpawner is enabled or not.
boolean isOnlyVisibleChunks()Returns true if one or more chunks are visible, false if not.
void setOnlyVisibleChunks(boolean value)Sets whether the chunks will be visible or not.