Skip to main content

GetChunksByDistanceInput

Arguments for getChunksByDistance: selects the stored chunks in a region, either a cube (centerCoordinate and maxDistance) or a box (lowChunk and highChunk), with pagination. A cube is ordered by Chebyshev distance from its center, then x, y, z; a box by x, y, z.

input GetChunksByDistanceInput {
appId: BigInt!
centerCoordinate: ChunkCoordinatesInput
maxDistance: Int
lowChunk: ChunkCoordinatesInput
highChunk: ChunkCoordinatesInput
limit: Int
skip: Int
since: DateTime
}

Fields​

GetChunksByDistanceInput.appId ● BigInt! non-null scalar​

Id of the app whose chunks to search (decimal string).

GetChunksByDistanceInput.centerCoordinate ● ChunkCoordinatesInput input​

Center chunk of the search cube. With maxDistance; leave both out to search a box (lowChunk and highChunk) instead.

GetChunksByDistanceInput.maxDistance ● Int scalar​

Cube 'radius' in chunks measured as Chebyshev distance: matches chunks whose x, y and z each differ from the center by at most this many chunks (a (2*maxDistance+1)^3 cube). Integer, 1-8 inclusive. With centerCoordinate.

GetChunksByDistanceInput.lowChunk ● ChunkCoordinatesInput input​

One corner of a search box, with highChunk, instead of a cube: for streaming only the slab a step uncovers. Corners are normalized per axis, and the box may cover at most 4,913 chunks (the cube maxDistance 8 reads).

GetChunksByDistanceInput.highChunk ● ChunkCoordinatesInput input​

The opposite corner of the search box, with lowChunk; both corners are inclusive.

GetChunksByDistanceInput.limit ● Int scalar​

Maximum number of chunks to return. Defaults to 1000 when omitted or 0; a cube at maxDistance 8 holds up to 4,913. Must be >= 0.

GetChunksByDistanceInput.skip ● Int scalar​

Number of chunks to skip for pagination. Defaults to 0 when omitted. Must be >= 0.

GetChunksByDistanceInput.since ● DateTime scalar​

Optional inclusive lower time bound: only chunks whose updatedAt is at or after it, i.e. chunks whose stored grid, chunk state or LODs were written since (updateChunk, updateChunkState, updateChunkLods). Single voxel edits do not move a chunk's updatedAt; read those with listVoxelUpdatesByDistance's since.

Member Of​

getChunksByDistance query