SetScorePacket¶
文档版本:r/21_u4
协议版本:748
SetScorePacket数据包,数字ID是108
。该数据包用于protocol.packet.setscorepacket.description
结构¶
digraph "SetScorePacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
4 -> 5
3 -> 6
6 -> 7
7 -> 11
6 -> 12
12 -> 13
6 -> 14
14 -> 15
6 -> 16
16 -> 17
17 -> 18
16 -> 19
19 -> 20
20 -> 21
19 -> 22
22 -> 23
23 -> 24
24 -> 25
22 -> 26
26 -> 27
27 -> 28
22 -> 29
29 -> 30
30 -> 31
0 [label="SetScorePacket",comment="name: \"SetScorePacket\", typeName: \"\", id: 0, branchId: 108, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Score Packet Type",comment="name: \"Score Packet Type\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="byte",comment="name: \"byte\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Score Packet Info",comment="name: \"Score Packet Info\", 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="Id",comment="name: \"Id\", typeName: \"ScoreboardId\", id: 7, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
11 [label="ScoreboardId",comment="name: \"ScoreboardId\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
12 [label="Objective Name",comment="name: \"Objective Name\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
13 [label="string",comment="name: \"string\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
14 [label="Score Value",comment="name: \"Score Value\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
15 [label="int",comment="name: \"int\", typeName: \"\", id: 15, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
16 [label="Dependency on 'Is Change Type'",shape=note,comment="name: \"Dependency on 'Is Change Type'\", typeName: \"\", id: 16, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
17 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 17, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""];
18 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 18, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
19 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 19, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
20 [label="Identity Definition Type",comment="name: \"Identity Definition Type\", typeName: \"\", id: 20, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
21 [label="byte",comment="name: \"byte\", typeName: \"\", id: 21, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
22 [label="Dependency on 'Identity Definition Type'",shape=note,comment="name: \"Dependency on 'Identity Definition Type'\", typeName: \"\", id: 22, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
23 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 23, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
24 [label="Player Unique Id",comment="name: \"Player Unique Id\", typeName: \"\", id: 24, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
25 [label="varint64",comment="name: \"varint64\", typeName: \"\", id: 25, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
26 [label="if (2)",shape=diamond,comment="name: \"if (2)\", typeName: \"\", id: 26, branchId: 2, recurseId: -1, attributes: 4, notes: \"\""];
27 [label="Actor Id",comment="name: \"Actor Id\", typeName: \"ActorUniqueID\", id: 27, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
28 [label="ActorUniqueID",comment="name: \"ActorUniqueID\", typeName: \"\", id: 28, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
29 [label="if (3)",shape=diamond,comment="name: \"if (3)\", typeName: \"\", id: 29, branchId: 3, recurseId: -1, attributes: 4, notes: \"\""];
30 [label="Fake Player Name",comment="name: \"Fake Player Name\", typeName: \"\", id: 30, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
31 [label="string",comment="name: \"string\", typeName: \"\", id: 31, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;5;11;13;15;18;21;25;28;31}
}
字段¶
- Score Packet Type:byte
- 基本类型枚举。protocol.packet.setscorepacket.score_packet_type.description枚举值如下:
-
键 值 描述 Change
0
protocol.enum.change Remove
1
protocol.enum.remove
- 数组大小:unsigned varint
- 基本类型。protocol.packet.setscorepacket.score_packet_info.array_size.description
- Id:ScoreboardId
- 特殊类型。protocol.packet.setscorepacket.score_packet_info.example_element.id.description
- Objective Name:string
- 特殊类型。protocol.packet.setscorepacket.score_packet_info.example_element.objective_name.description
- Score Value:int
- 基本类型。protocol.packet.setscorepacket.score_packet_info.example_element.score_value.description
依赖于
Is Change Type
- if (0):[No Data]
- 无数据
- Identity Definition Type:byte
- 基本类型。protocol.packet.setscorepacket.score_packet_info.example_element.dependency_on_is_change_type.if_1.identity_definition_type.description
依赖于
Identity Definition Type
- Player Unique Id:varint64
- 基本类型。protocol.packet.setscorepacket.score_packet_info.example_element.dependency_on_is_change_type.if_1.dependency_on_identity_definition_type.if_1.player_unique_id.description
- Actor Id:ActorUniqueID
- 特殊类型。protocol.packet.setscorepacket.score_packet_info.example_element.dependency_on_is_change_type.if_1.dependency_on_identity_definition_type.if_2.actor_id.description
- Fake Player Name:string
- 特殊类型。protocol.packet.setscorepacket.score_packet_info.example_element.dependency_on_is_change_type.if_1.dependency_on_identity_definition_type.if_3.fake_player_name.description