跳转至

UnlockedRecipesPacket

文档版本:r/20_u8
协议版本:671

UnlockedRecipesPacket数据包,数字ID是199。该数据包用于protocol.packet.unlockedrecipespacket.description

结构

digraph "UnlockedRecipesPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
4 -> 5
3 -> 6
6 -> 7
7 -> 8

0 [label="UnlockedRecipesPacket",comment="name: \"UnlockedRecipesPacket\", typeName: \"\", id: 0, branchId: 199, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Packet Type",comment="name: \"Packet Type\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="unsigned int",comment="name: \"unsigned int\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Unlocked Recipes List",comment="name: \"Unlocked Recipes List\", 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="Recipe",comment="name: \"Recipe\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="string",comment="name: \"string\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;5;8}

}

字段

UnlockedRecipesPacket
[packet_type][unlocked_recipes_list]
Packet Type:unsigned int
基本类型。protocol.packet.unlockedrecipespacket.packet_type.description
Unlocked Recipes List
[array_size][[example_element]..]
数组大小:unsigned varint
基本类型。protocol.packet.unlockedrecipespacket.unlocked_recipes_list.array_size.description
示例元素
[recipe]
Recipe:string
特殊类型。protocol.packet.unlockedrecipespacket.unlocked_recipes_list.example_element.recipe.description