跳转至

SetTitlePacket

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

SetTitlePacket数据包,数字ID是88。该数据包用于protocol.packet.settitlepacket.description

结构

digraph "SetTitlePacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 -> 7
7 -> 8
0 -> 9
9 -> 10
0 -> 11
11 -> 12
0 -> 13
13 -> 14

0 [label="SetTitlePacket",comment="name: \"SetTitlePacket\", typeName: \"\", id: 0, branchId: 88, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Title Type",comment="name: \"Title Type\", 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="Title Text",comment="name: \"Title Text\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
4 [label="string",comment="name: \"string\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Fade In Time",comment="name: \"Fade In Time\", 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="Stay Time",comment="name: \"Stay Time\", 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="Fade Out Time",comment="name: \"Fade Out Time\", 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: \"\""];
11 [label="Xuid",comment="name: \"Xuid\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
12 [label="string",comment="name: \"string\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
13 [label="Platform Online Id",comment="name: \"Platform Online Id\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
14 [label="string",comment="name: \"string\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8;10;12;14}

}

字段

SetTitlePacket
[title_type][title_text][fade_in_time][stay_time][fade_out_time][xuid][platform_online_id]
Title Type:varint
基本类型枚举。protocol.packet.settitlepacket.title_type.description枚举值如下:
描述
Clear 0 protocol.enum.clear
Reset 1 protocol.enum.reset
Title 2 protocol.enum.title
Subtitle 3 protocol.enum.subtitle
Actionbar 4 protocol.enum.actionbar
Times 5 protocol.enum.times
TitleTextObject 6 protocol.enum.titletextobject
SubtitleTextObject 7 protocol.enum.subtitletextobject
ActionbarTextObject 8 protocol.enum.actionbartextobject
Title Text:string
特殊类型。protocol.packet.settitlepacket.title_text.description
Fade In Time:varint
基本类型。protocol.packet.settitlepacket.fade_in_time.description
Stay Time:varint
基本类型。protocol.packet.settitlepacket.stay_time.description
Fade Out Time:varint
基本类型。protocol.packet.settitlepacket.fade_out_time.description
Xuid:string
特殊类型。protocol.packet.settitlepacket.xuid.description
Platform Online Id:string
特殊类型。protocol.packet.settitlepacket.platform_online_id.description