← Packet index

Packet 337

VoxelShapesPacket

Syncs client with server voxel shape data on world join. This packet contains a copy of all behavior pack voxel shapes data and is used by StartGamePacket.

Sends the serializable voxel shapes data to the client as it's needed on both the client and server. This packet should always be sent before StartGamePacket.

Packet datagramWire order
HeaderID 337varuint
0Shapesarray<VoxelShapes::SerializableVoxelShape> · variable
1Name Mapobject · variable
2Custom Shape Countuint16 · 2 bytes

Serialized fields

3 top-level fields
  1. 0ShapesVoxel shape structural dataVoxelShapes::SerializableVoxelShapeas array<VoxelShapes::SerializableVoxelShape>
    1. 0CellsGrid of cells representing solid and empty regionsVoxelShapes::SerializableCells
      1. 0X SizeNumber of cells along the X axisuint8
      2. 1Y SizeNumber of cells along the Y axisuint8
      3. 2Z SizeNumber of cells along the Z axisuint8
      4. 3StorageSolid/empty state per cellarray<uint8>
    2. 1X CoordinatesCell boundaries along the X axisarray<float>
    3. 2Y CoordinatesCell boundaries along the Y axisarray<float>
    4. 3Z CoordinatesCell boundaries along the Z axisarray<float>
  2. 1Name MapVoxel shape name-to-handle mappingsobject
  3. 2Custom Shape CountThe number of custom voxel shapesuint16

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.