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
updatedAt: DateTime
}
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.
VoxelState.updatedAt ● DateTime scalar
When this entry was last written: the recorded voxel edit's time, or for a state stored with the chunk, when the chunk's voxels were last written whole (Chunk.voxelsUpdatedAt; the chunk's last write when that is null). A client that also hears realtime voxel updates keeps, per voxel, the newer of this and a notification's time (a realtime edit is recorded at the time its notification carries, replication servers v0.46.0). Null when the read did not apply recorded edits. Application API v2.69.0; stored states dated by the whole-chunk write since v2.70.0.
Member Of
Chunk object