MCBE
OverviewPacketsInventorySlot
ID 0x32 · 50Server → ClientInventory

InventorySlot

inventory-slot.bin
struct InventorySlot {
  ContainerID                                  InventoryId;
  varuint32                                    Slot;
  optional byte + FullContainerName            FullContainerName;
  optional byte + SerializedNetworkItemStackDescriptor StorageItem;
  SerializedNetworkItemStackDescriptor         Item;
}

Structure

FieldTypeDescription
Inventory IdContainerID
Slotvaruint32
Full Container Nameoptional byte + FullContainerNamePresence flag on the wire; value omitted when absent.
Storage Itemoptional byte + SerializedNetworkItemStackDescriptorPresence flag on the wire; value omitted when absent.
ItemSerializedNetworkItemStackDescriptor

Structure of FullContainerName

FieldTypeDescription
NameContainerEnumName
Dynamic Idoptional byte + uint32Presence flag on the wire; value omitted when absent.

Structure of SerializedNetworkItemStackDescriptor

cerealizer<NetworkItemStackDescriptor>::SerializedData. ItemStackNetIdVariant's

FieldTypeDescription
Idint16 (LE)
Stack Sizeuint16 (LE)
Aux Valuevaruint32
Net Id Variantoptional byte + varint32Presence flag on the wire; value omitted when absent.
Block Runtime Idvaruint32
User Data Bufferbyte[]

Notes

  • No special notes.