SetHudPacket¶
文档版本:r/21_u4
协议版本:748
SetHudPacket数据包,数字ID是308。该数据包用于protocol.packet.sethudpacket.description
结构¶
digraph "SetHudPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
2 -> 3
1 -> 4
4 -> 5
5 -> 6
0 -> 7
7 -> 8
0 [label="SetHudPacket",comment="name: \"SetHudPacket\", typeName: \"\", id: 0, branchId: 308, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Hud Element List",comment="name: \"Hud Element List\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 8, notes: \"\""];
2 [label="Array Size",comment="name: \"Array Size\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
3 [label="unsigned varint",comment="name: \"unsigned varint\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
4 [label="example element",style=dotted,comment="name: \"example element\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 16, notes: \"\""];
5 [label="Hud Element",comment="name: \"Hud Element\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="varint",comment="name: \"varint\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="isHudVisible",comment="name: \"isHudVisible\", 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: \"\""];
{ rank = max;3;6;8}
}
字段¶
- 数组大小:unsigned varint
- 基本类型。protocol.packet.sethudpacket.hud_element_list.array_size.description
- Hud Element:varint
- 基本类型枚举。protocol.packet.sethudpacket.hud_element_list.example_element.hud_element.description枚举值如下:
-
键 值 描述 PaperDoll0protocol.enum.paperdoll Armor1protocol.enum.armor ToolTips2protocol.enum.tooltips TouchControls3protocol.enum.touchcontrols Crosshair4protocol.enum.crosshair HotBar5protocol.enum.hotbar Health6protocol.enum.health ProgressBar7protocol.enum.progressbar Hunger8protocol.enum.hunger AirBubbles9protocol.enum.airbubbles HorseHealth10protocol.enum.horsehealth StatusEffects11protocol.enum.statuseffects ItemText12protocol.enum.itemtext Count13protocol.enum.count
- isHudVisible:varint
- 基本类型枚举。protocol.packet.sethudpacket.ishudvisible.description枚举值如下:
-
键 值 描述 Hide0protocol.enum.hide Reset1protocol.enum.reset Count2protocol.enum.count