MCBE
OverviewPacketsInventoryContent
ID 0x31 · 49Server → ClientInventory

InventoryContent

inventory-content.bin
struct InventoryContent {
  varuint32                                    InventoryId;
  varuint32 [] · SerializedNetworkItemStackDescriptor[] Slots;
  FullContainerName                            FullContainerName;
  SerializedNetworkItemStackDescriptor         StorageItem;
}

Structure

FieldTypeDescription
Inventory Idvaruint32
Slotsvaruint32 count + SerializedNetworkItemStackDescriptor[]Length-prefixed sequence.
Full Container NameFullContainerName
Storage ItemSerializedNetworkItemStackDescriptor

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[]

Structure of FullContainerName

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

Notes

  • No special notes.