Skip to main content

VoxelState

A single voxel's override on a chunk, stored with it or recorded as a voxel edit: its local position, its voxel type, and an opaque base64-encoded state blob.

type VoxelState {
voxelCoord: VoxelCoordinates!
voxelType: Int!
state: String
}

Fields​

VoxelState.voxelCoord ● VoxelCoordinates! non-null object​

Voxel position within the chunk (signed 16-bit per axis, app-defined).

VoxelState.voxelType ● Int! non-null scalar​

Voxel type id at this position (signed 16-bit, app-defined).

VoxelState.state ● String scalar​

BASE64-encoded binary state blob for this voxel (decode from base64); null/empty when the voxel has no extra state.

Member Of​

Chunk object