← Packet index

Packet 328

PrimitiveShapesPacket

Packet datagramWire order
HeaderID 328varuint
0Array of primitive shapes (can be a mix of new, updated or removed)array<PrimitiveShapeDataPayload> · variable

Serialized fields

1 top-level fields
  1. 0Array of primitive shapes (can be a mix of new, updated or removed)PrimitiveShapeDataPayloadas array<PrimitiveShapeDataPayload>
    1. 0NetworkIdCompressionvaruint64
    2. 1Shape TypeoptionalEnum-as-ValueScriptModuleMinecraft::ScriptPrimitiveShapeTypeas uint8
      1. 0Line
      2. 1Box
      3. 2Sphere
      4. 3Circle
      5. 4Text
      6. 5Arrow
      7. 6Cylinder
      8. 7Pyramid
      9. 8Ellipsoid
      10. 9Cone
    3. 2LocationoptionalVec3
    4. 4RotationoptionalVec3
    5. 5Total Time Leftoptionalfloat
    6. 6Maximum Render Distanceoptionalfloat
    7. 7ColoroptionalColor
      1. 0Colorint32
    8. 8Dimension IDDimensionType
      1. 0valueCompressionvarint32
    9. 9Attached To Entity IDoptionalActorUniqueID
      1. 0Actor Unique IDCompressionvarint64
    10. 10Extra Shape DataoneOf<null, ArrowDataPayload, TextDataPayload, BoxDataPayload, LineDataPayload, SphereDataPayload, CylinderDataPayload, PyramidDataPayload, EllipsoidDataPayload, ConeDataPayload>
      0Variant 0null
      1ArrowDataPayloadArrowDataPayload
      1. 0Arrow End LocationVec3
      2. 1Arrow Head Lengthfloat
      3. 2Arrow Head Radiusfloat
      4. 3Num Segmentsuint8
      2TextDataPayloadTextDataPayload
      1. 0Textstring
      2. 1UseRotationboolean
      3. 2BackgroundColoroptionalColor
        1. 0Colorint32
      4. 3DepthTestboolean
      5. 4ShowBackfaceboolean
      6. 5ShowTextBackfaceboolean
      3BoxDataPayloadBoxDataPayload
      1. 0Box BoundVec3
      4LineDataPayloadLineDataPayload
      1. 0Line End LocationVec3
      5SphereDataPayloadSphereDataPayload
      1. 0Num Segmentsuint8
      6CylinderDataPayloadCylinderDataPayload
      1. 0Radius XVec2
      2. 1Radius ZVec2
      3. 2Heightfloat
      4. 3Num Segmentsuint8
      7PyramidDataPayloadPyramidDataPayload
      1. 0Widthfloat
      2. 2Heightfloat
      8EllipsoidDataPayloadEllipsoidDataPayload
      1. 0RadiiVec3
      2. 1Segments Per Axisuint8
      9ConeDataPayloadConeDataPayload
      1. 0RadiiVec2
      2. 1Heightfloat
      3. 2Num Segmentsuint8

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.