SetPlayerInventoryOptionsPacket¶
文档版本:r/21_u4
协议版本:748
SetPlayerInventoryOptionsPacket数据包,数字ID是307。该数据包用于protocol.packet.setplayerinventoryoptionspacket.description
结构¶
digraph "SetPlayerInventoryOptionsPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 -> 7
7 -> 8
0 -> 9
9 -> 10
0 [label="SetPlayerInventoryOptionsPacket",comment="name: \"SetPlayerInventoryOptionsPacket\", typeName: \"\", id: 0, branchId: 307, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Left Inventory Tab",comment="name: \"Left Inventory Tab\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="varint",comment="name: \"varint\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Right Inventory Tab",comment="name: \"Right Inventory Tab\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
4 [label="varint",comment="name: \"varint\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Filtering",comment="name: \"Filtering\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="bool",comment="name: \"bool\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="Layout Inv",comment="name: \"Layout Inv\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="varint",comment="name: \"varint\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Layout Craft",comment="name: \"Layout Craft\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="varint",comment="name: \"varint\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8;10}
}
字段¶
SetPlayerInventoryOptionsPacket
[left_inventory_tab][right_inventory_tab][filtering][layout_inv][layout_craft]
- Left Inventory Tab:varint
- 基本类型枚举。protocol.packet.setplayerinventoryoptionspacket.left_inventory_tab.description枚举值如下:
-
键 值 描述 None0无 RecipeConstruction1protocol.enum.recipeconstruction RecipeEquipment2protocol.enum.recipeequipment RecipeItems3protocol.enum.recipeitems RecipeNature4protocol.enum.recipenature RecipeSearch5protocol.enum.recipesearch Survival6protocol.enum.survival Count7protocol.enum.count
- Right Inventory Tab:varint
- 基本类型枚举。protocol.packet.setplayerinventoryoptionspacket.right_inventory_tab.description枚举值如下:
-
键 值 描述 None0无 FullScreen1protocol.enum.fullscreen Crafting2protocol.enum.crafting Armor3protocol.enum.armor Count4protocol.enum.count
- Filtering:bool
- 基本类型。protocol.packet.setplayerinventoryoptionspacket.filtering.description
- Layout Inv:varint
- 基本类型枚举。protocol.packet.setplayerinventoryoptionspacket.layout_inv.description枚举值如下:
-
键 值 描述 None0无 Survival1protocol.enum.survival RecipeBook2protocol.enum.recipebook Creative3protocol.enum.creative Count4protocol.enum.count
- Layout Craft:varint
- 基本类型枚举。protocol.packet.setplayerinventoryoptionspacket.layout_craft.description枚举值如下:
-
键 值 描述 None0无 Survival1protocol.enum.survival RecipeBook2protocol.enum.recipebook Creative3protocol.enum.creative Count4protocol.enum.count