← Back to Index

SubChunkPacket (174)

Sent from server to client representing a batch of subchunk data.
Contains subchunk terrain data, heightmaps, and optional blob cache IDs.
Field Name Type Field Index Description
Cache Enabled (Required) boolean 0 Whether client supports blob caching.
Dimension Type (Required) DimensionType 1 The dimension where the subchunk data belongs.

DimensionType

Field Name Type Field Index Description
value (Required) varint32 0
Center Pos (Required) SubChunkPos 2 The centroid of the subchunk positions for translating relative to absolute.

SubChunkPos

Field Name Type Field Index Description
Subchunk Position X (Required) int32 0
Subchunk Position Y (Required) int32 1
Subchunk Position Z (Required) int32 2
SubChunk Data (Required) array<SubChunkPacketData> 3 Collection of subchunk data entries.

SubChunkPacketData (Array Item)

Field Name Type Field Index Description
SubChunk Pos Offset (Required) SubChunkPosOffset 0 Relative position based on the center of the subchunk batch.

SubChunkPosOffset

Field Name Type Field Index Description
Subchunk Offset X (Required) int8 0 Relative X offset from center position.
Subchunk Offset Y (Required) int8 1 Relative Y offset from center position.
Subchunk Offset Z (Required) int8 2 Relative Z offset from center position.
SubChunk Request Result (Required) uint8 1 Result of the subchunk request.
Enum Values:
Index Value
0 Success
1 LevelChunkDoesntExist
2 WrongDimension
3 PlayerDoesntExist
4 IndexOutOfBounds
5 SuccessAllAir
Serialized Sub Chunk string 2 Serialized subchunk binary data, absent when cache enabled and result is SuccessAllAir.
Height Map Data (Required) SubChunkHeightmapData 3 Height map data for this subchunk.

SubChunkHeightmapData

Field Name Type Field Index Description
Height Map Type (Required) uint8 0 Type of height map data for this subchunk.
Enum Values:
Index Value
0 NoData
1 HasData
2 AllTooHigh
3 AllTooLow
Subchunk Height Map array<array> 1 2D height map array [z][x], present when type is HasData.
Render Height Map Type (Required) uint8 2 Type of render height map data for this subchunk.
Enum Values:
Index Value
0 NoData
1 HasData
2 AllTooHigh
3 AllTooLow
4 AllCopied
Subchunk Render Height Map array<array> 3 2D render height map array [z][x], present when type is HasData.
Blob Id uint64 4 Blob cache ID, present when the subchunk data was queued in the cache transfer builder.