Skip to main content

Voxel

A recorded edit to a single voxel (one row of the voxel_updates log): the app/chunk/local-position that changed, the new voxel type, an optional state blob, and who/when. Returned by listVoxels, getVoxelList and listVoxelUpdatesByDistance; created by updateVoxel. A background maintenance job later folds these edits into the chunk grid.

type Voxel {
voxelUpdateId: BigInt!
appId: BigInt!
coordinates: ChunkCoordinates!
location: VoxelCoordinates!
voxelType: Int!
state: String
createdBy: BigInt!
createdAt: DateTime!
}

Fields

Voxel.voxelUpdateId ● BigInt! non-null scalar

Unique id of this voxel-update row (decimal string).

Voxel.appId ● BigInt! non-null scalar

Id of the app this edit belongs to (decimal string).

Voxel.coordinates ● ChunkCoordinates! non-null object

Address of the chunk that contains the edited voxel.

Voxel.location ● VoxelCoordinates! non-null object

Local position of the edited voxel within its chunk (0-15 per axis).

Voxel.voxelType ● Int! non-null scalar

New voxel type id written by this edit (0-255).

Voxel.state ● String scalar

BASE64-encoded binary state blob for the voxel (decode from base64); null when no state was set.

Voxel.createdBy ● BigInt! non-null scalar

Id of the user that made this edit (decimal string).

Voxel.createdAt ● DateTime! non-null scalar

When the edit was recorded; also serves as the last-modified time for the voxel.

Returned By

listVoxels query ● updateVoxel mutation

Member Of

ChunkVoxelResponse object ● ChunkVoxelUpdatesResponse object