InventoryContentPacket¶
文档版本:r/21_u4
协议版本:748
InventoryContentPacket数据包,数字ID是49
。该数据包用于protocol.packet.inventorycontentpacket.description
结构¶
digraph "InventoryContentPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
4 -> 5
3 -> 6
6 -> 7
7 -> 8
0 -> 9
9 -> 18
0 -> 19
19 -> 20
0 [label="InventoryContentPacket",comment="name: \"InventoryContentPacket\", typeName: \"\", id: 0, branchId: 49, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Inventory Id",comment="name: \"Inventory Id\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Slots",comment="name: \"Slots\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
4 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
5 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
6 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
7 [label="Item stack",comment="name: \"Item stack\", typeName: \"NetworkItemStackDescriptor\", id: 7, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
8 [label="NetworkItemStackDescriptor",comment="name: \"NetworkItemStackDescriptor\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Full Container Name",comment="name: \"Full Container Name\", typeName: \"FullContainerName\", id: 9, branchId: 0, recurseId: -1, attributes: 256, notes: \"Used to reference a specific container within a given screen container context.\""];
18 [label="FullContainerName",comment="name: \"FullContainerName\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
19 [label="Storage Item",comment="name: \"Storage Item\", typeName: \"NetworkItemStackDescriptor\", id: 19, branchId: 0, recurseId: -1, attributes: 256, notes: \"Optional storage item containing the contents to set. Only the item type is relevant, not any stack information.\""];
20 [label="NetworkItemStackDescriptor",comment="name: \"NetworkItemStackDescriptor\", typeName: \"\", id: 20, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;5;8;18;20}
}
字段¶
- Inventory Id:unsigned varint
- 基本类型。protocol.packet.inventorycontentpacket.inventory_id.description
- 数组大小:unsigned varint
- 基本类型。protocol.packet.inventorycontentpacket.slots.array_size.description
- Item stack:NetworkItemStackDescriptor
- 特殊类型。protocol.packet.inventorycontentpacket.slots.example_element.item_stack.description
- Full Container Name:FullContainerName
- 特殊类型。protocol.packet.inventorycontentpacket.full_container_name.descriptionUsed to reference a specific container within a given screen container context.
- Storage Item:NetworkItemStackDescriptor
- 特殊类型。protocol.packet.inventorycontentpacket.storage_item.descriptionOptional storage item containing the contents to set. Only the item type is relevant, not any stack information.