Skip to main content

ChunkUpdateInput

Payload for updateChunk: upserts a chunk's dense voxel grid and/or per-voxel states and logs each provided state as an individual voxel update. Does NOT modify chunkState or LODs.

input ChunkUpdateInput {
appId: BigInt!
coordinates: ChunkCoordinatesInput!
voxels: String
voxelStates: [VoxelStateInput!]
}

Fields

ChunkUpdateInput.appId ● BigInt! non-null scalar

Id of the app that owns the chunk (decimal string).

ChunkUpdateInput.coordinates ● ChunkCoordinatesInput! non-null input

Address of the chunk to create or update.

ChunkUpdateInput.voxels ● String scalar

Optional BASE64-encoded dense voxel grid. The DECODED buffer must be exactly 4096 bytes: one voxel-type byte (0-255) per voxel, indexed x + y*16 + z*256 (x,y,z in 0-15). Omit to leave the existing grid unchanged.

ChunkUpdateInput.voxelStates ● [VoxelStateInput!] list input

Optional per-voxel state overrides to write; each entry is also recorded as an individual voxel update. Omit to leave existing states unchanged.

Member Of

updateChunk mutation