Skip to main content

VoxelStateInput

One per-voxel state entry to write to a chunk.

input VoxelStateInput {
voxelCoord: VoxelCoordinatesInput!
voxelType: Int!
state: String
}

Fields​

VoxelStateInput.voxelCoord ● VoxelCoordinatesInput! non-null input​

Voxel position within the chunk. App-defined: any signed 16-bit integer per axis; a position outside the 16x16x16 dense grid lives only in voxel states.

VoxelStateInput.voxelType ● Int! non-null scalar​

Voxel type id to set at this position. App-defined: any signed 16-bit integer (-32768 to 32767). The dense grid stores 0-255; a wider type lives in this voxel state.

VoxelStateInput.state ● String scalar​

BASE64-encoded binary state blob for this voxel, at most 1 KiB decoded; omit/null for no extra state.

Member Of​

ChunkUpdateInput input