跳转至

ResourcePackDataInfoPacket

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

ResourcePackDataInfoPacket数据包,数字ID是82。该数据包用于protocol.packet.resourcepackdatainfopacket.description

结构

digraph "ResourcePackDataInfoPacket" {
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="ResourcePackDataInfoPacket",comment="name: \"ResourcePackDataInfoPacket\", typeName: \"\", id: 0, branchId: 82, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Resource Name",comment="name: \"Resource Name\", typeName: \"\", id: 1, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
2 [label="string",comment="name: \"string\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Chunk Size",comment="name: \"Chunk Size\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
4 [label="unsigned int",comment="name: \"unsigned int\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Number of Chunks",comment="name: \"Number of Chunks\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="unsigned int",comment="name: \"unsigned int\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="File Size",comment="name: \"File Size\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="unsigned int64",comment="name: \"unsigned int64\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="File Hash",comment="name: \"File Hash\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="string",comment="name: \"string\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
11 [label="Is Premium Pack",comment="name: \"Is Premium Pack\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: \"Do you need an entitlement to use this pack?\""];
12 [label="bool",comment="name: \"bool\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
13 [label="Pack Type",comment="name: \"Pack Type\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
14 [label="byte",comment="name: \"byte\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8;10;12;14}

}

字段

ResourcePackDataInfoPacket
[resource_name][chunk_size][number_of_chunks][file_size][file_hash][is_premium_pack][pack_type]
Resource Name:string
特殊类型。protocol.packet.resourcepackdatainfopacket.resource_name.description
Chunk Size:unsigned int
基本类型。protocol.packet.resourcepackdatainfopacket.chunk_size.description
Number of Chunks:unsigned int
基本类型。protocol.packet.resourcepackdatainfopacket.number_of_chunks.description
File Size:unsigned int64
基本类型。protocol.packet.resourcepackdatainfopacket.file_size.description
File Hash:string
特殊类型。protocol.packet.resourcepackdatainfopacket.file_hash.description
Is Premium Pack:bool
基本类型。protocol.packet.resourcepackdatainfopacket.is_premium_pack.descriptionDo you need an entitlement to use this pack?
Pack Type:byte
基本类型枚举。protocol.packet.resourcepackdatainfopacket.pack_type.description枚举值如下:
描述
Invalid 0 protocol.enum.invalid
Addon 1 protocol.enum.addon
Cached 2 protocol.enum.cached
CopyProtected 3 protocol.enum.copyprotected
Behavior 4 protocol.enum.behavior
PersonaPiece 5 protocol.enum.personapiece
Resources 6 protocol.enum.resources
Skins 7 protocol.enum.skins
WorldTemplate 8 protocol.enum.worldtemplate
Count 9 protocol.enum.count