← Type index

ItemStackResponseSlotInfo

Object datagramWire order
0Requested Slotuint8 · 1 byte
1Slotuint8 · 1 byte
2Amountuint8 · 1 byte
3Item Stack Net IdItemStackNetId · variable
4Custom NameBedrock::Safety::RedactableString · variable
5Durability Correctionvarint32 · variable (up to 5 bytes)

Fields

6 top-level fields
  1. 0Requested SlotThe slot index that was requested.uint8
  2. 1SlotThe actual slot index.uint8
  3. 2AmountThe item amount in the slot. When zero, the Item Stack Net Id optional carries no value (a single presence byte of 0 is still written).uint8
  4. 3Item Stack Net IdoptionalThe server net ID for the item stack. Encoded as an optional: a presence byte is always written, followed by the value only when Amount > 0.ItemStackNetId
    1. 0IDRaw Id (32 bit signed)Compressionvarint32
  5. 4Custom NameThe custom name of the item.Bedrock::Safety::RedactableString
    1. 0Unredactedstring
  6. 5Durability CorrectionDurability correction value, encoded as a zigzag VarInt32 on the wire. Must fit in an int16_t.Compressionvarint32

Packet references

1 reference
  1. ItemStackResponsePacket
    Responses › ItemStackResponseInfo › Containers › ItemStackResponseContainerInfo › Slots › ItemStackResponseSlotInfo

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.