Skip to main content

RollbackVoxelEventResult

Per-voxel outcome of a rollbackVoxelUpdates call. In dry-run mode this describes what WOULD happen; otherwise it reports what was applied. One result is returned per affected voxel.

type RollbackVoxelEventResult {
appId: BigInt!
coordinates: ChunkCoordinates!
location: VoxelCoordinates!
fromVoxelType: Int
toVoxelType: Int
plannedAction: String!
applied: Boolean!
reason: String
}

Fields

RollbackVoxelEventResult.appId ● BigInt! non-null scalar

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

RollbackVoxelEventResult.coordinates ● ChunkCoordinates! non-null object

Address of the chunk that contains the affected voxel.

RollbackVoxelEventResult.location ● VoxelCoordinates! non-null object

Local position of the affected voxel within its chunk.

RollbackVoxelEventResult.fromVoxelType ● Int scalar

Voxel type immediately before the rollback (the current value), or null.

RollbackVoxelEventResult.toVoxelType ● Int scalar

Voxel type the voxel would be / was reverted to, or null.

RollbackVoxelEventResult.plannedAction ● String! non-null scalar

The action computed for this voxel by the rollback (the revert operation to perform).

RollbackVoxelEventResult.applied ● Boolean! non-null scalar

True if the change was actually written; false in dry-run mode or when the voxel was skipped.

RollbackVoxelEventResult.reason ● String scalar

Human-readable explanation when a voxel is skipped or an action is taken, or null.

Returned By

rollbackVoxelUpdates mutation