OverviewPacketsInventoryContent
ID 0x31 · 49Server → ClientInventory
InventoryContent
inventory-content.bin
struct InventoryContent {
varuint32 InventoryId;
varuint32 [] · SerializedNetworkItemStackDescriptor[] Slots;
FullContainerName FullContainerName;
SerializedNetworkItemStackDescriptor StorageItem;
}Structure
| Field | Type | Description |
|---|---|---|
| Inventory Id | varuint32 | |
| Slots | varuint32 count + SerializedNetworkItemStackDescriptor[] | Length-prefixed sequence. |
| Full Container Name | FullContainerName | |
| Storage Item | SerializedNetworkItemStackDescriptor |
Structure of SerializedNetworkItemStackDescriptor
cerealizer<NetworkItemStackDescriptor>::SerializedData. ItemStackNetIdVariant's
| Field | Type | Description |
|---|---|---|
| Id | int16 (LE) | |
| Stack Size | uint16 (LE) | |
| Aux Value | varuint32 | |
| Net Id Variant | optional byte + varint32 | Presence flag on the wire; value omitted when absent. |
| Block Runtime Id | varuint32 | |
| User Data Buffer | byte[] |
Structure of FullContainerName
| Field | Type | Description |
|---|---|---|
| Name | ContainerEnumName | |
| Dynamic Id | optional byte + uint32 | Presence flag on the wire; value omitted when absent. |
Notes
- No special notes.
