Skip to main content

VoxelChunk

Complete API reference for VoxelChunk, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Voxels

Component: yes


public class VoxelChunk extends Component

Constructors

SignatureDescription
VoxelChunk(VoxelChunk)Executes VoxelChunk and returns after the underlying engine call finishes.
VoxelChunk()Executes VoxelChunk and returns after the underlying engine call finishes.

Attributes

NameTypeDescription
instanceVoxelChunkRepresents the instance value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
blocksMatrixOH3LevelIntArraysetVirtual attribute exposed by setBlocksMatrix. Access it like a field to read or write the underlying value.
blocksMatrixCriticalOH3LevelIntArraygetVirtual attribute exposed by getBlocksMatrixCritical. Access it like a field to read or write the underlying value.
heightintget/setVirtual attribute exposed by getHeight. Access it like a field to read or write the underlying value.
offsetVector2get/setVirtual attribute exposed by getOffset. Access it like a field to read or write the underlying value.
usePositionAsCoordinatesOffsetbooleanget/setVirtual attribute exposed by isUsePositionAsCoordinatesOffset. Access it like a field to read or write the underlying value.
widthintget/setVirtual attribute exposed by getWidth. Access it like a field to read or write the underlying value.

Methods

SignatureReturnsDescription
apply()voidExecutes apply and returns after the underlying engine call finishes.
invalidateBlocks()voidExecutes invalidateBlocks and returns after the underlying engine call finishes.
getMaxVerticesCount()intReturns the current max vertices count.
getBlock(int, int, int)intReturns the current block.
getBlockLocal(int, int, int)intReturns the current block local.
setBlock(int, int, int, int)voidSets or updates the block.
setLocalBlock(int, int, int, int)voidSets or updates the local block.
containsBlock(int, int, int)booleanPerforms the containsBlock operation using the provided parameters (x, y, z).
containsLocalBlock(int, int, int)booleanPerforms the containsLocalBlock operation using the provided parameters (x, y, z).
isReady()booleanReturns whether ready is true.
componentClassMatch(Component, Component)booleanExecutes componentClassMatch and returns after the underlying engine call finishes.
getEngineComponent()ComponentExecutes getEngineComponent and returns after the underlying engine call finishes.