Constructors
constructor
- new Chunk(noa, requestID, ci, cj, ck, size, dataArray, fillVoxelID?): Chunk
-
Parameters
-
-
requestID: any
-
ci: any
-
cj: any
-
ck: any
-
size: any
-
dataArray: any
-
fillVoxelID: number = -1
Properties
_isEmpty
_isEmpty: boolean
_neighborCount
_neighborCount: number
_neighbors
_neighbors: any
_objectsDirty
_objectsDirty: boolean
_terrainDirty
_terrainDirty: boolean
_terrainMeshes
_terrainMeshes: any[]
_timesMeshed
_timesMeshed: number
_wholeLayerVoxel
_wholeLayerVoxel: any[]
isDisposed
isDisposed: boolean
Methods
_updateVoxelArray
- _updateVoxelArray(dataArray, fillVoxelID?): void
-
Parameters
-
dataArray: any
-
fillVoxelID: number = -1
Returns void
dispose
- dispose(): void
-
Returns void
get
- get(i, j, k): any
-
Returns any
getSolidityAt
- getSolidityAt(i, j, k): boolean
-
Returns boolean
set
- set(i, j, k, newID): void
-
Parameters
-
i: any
-
j: any
-
k: any
-
newID: any
Returns void
updateMeshes
- updateMeshes(): void
-
Returns void
Static
_createVoxelArray
- _createVoxelArray(size): any
-
Returns any