跳转至

ResourcePackStackPacket

文档版本:r/21_u4
协议版本:748

ResourcePackStackPacket数据包,数字ID7。该数据包用于protocol.packet.resourcepackstackpacket.description

结构



ResourcePackStackPacket




0

ResourcePackStackPacket




1

Texture Pack Required



0->1






3

Add-On List



0->3






13

Texture Pack List



0->13






23

Base Game Version



0->23






28

Experiments



0->28






45

Include Editor Packs



0->45






2

bool



1->2






4

Array Size



3->4






6

example element



3->6






5

unsigned varint



4->5






7

ID



6->7






9

Version



6->9






11

Sub Pack Name



6->11






8

string



7->8






10

string



9->10






12

string



11->12






14

Array Size



13->14






16

example element



13->16






15

unsigned varint



14->15






17

ID



16->17






19

Version



16->19






21

Sub Pack Name



16->21






18

string



17->18






20

string



19->20






22

string



21->22






27

BaseGameVersion



23->27






44

Experiments



28->44






46

bool



45->46




字段

ResourcePackStackPacket
[texture_pack_required][add-on_list][texture_pack_list][base_game_version][experiments][include_editor_packs]
Texture Pack Required:bool
基本类型。protocol.packet.resourcepackstackpacket.texture_pack_required.description
Add-On List
[array_size][[example_element]..]
数组大小:unsigned varint
基本类型。protocol.packet.resourcepackstackpacket.add-on_list.array_size.description
示例元素
[id][version][sub_pack_name]
IDstring
特殊类型。protocol.packet.resourcepackstackpacket.add-on_list.example_element.id.description
Version:string
特殊类型。protocol.packet.resourcepackstackpacket.add-on_list.example_element.version.description
Sub Pack Name:string
特殊类型。protocol.packet.resourcepackstackpacket.add-on_list.example_element.sub_pack_name.description
Texture Pack List
[array_size][[example_element]..]
数组大小:unsigned varint
基本类型。protocol.packet.resourcepackstackpacket.texture_pack_list.array_size.description
示例元素
[id][version][sub_pack_name]
IDstring
特殊类型。protocol.packet.resourcepackstackpacket.texture_pack_list.example_element.id.description
Version:string
特殊类型。protocol.packet.resourcepackstackpacket.texture_pack_list.example_element.version.description
Sub Pack Name:string
特殊类型。protocol.packet.resourcepackstackpacket.texture_pack_list.example_element.sub_pack_name.description
Base Game Version:BaseGameVersion
特殊类型。protocol.packet.resourcepackstackpacket.base_game_version.descriptionFor clients to be able to set their stack to the right version.
Experiments:Experiments
特殊类型。protocol.packet.resourcepackstackpacket.experiments.descriptionRefer to the Experiments type for how to serialize
Include Editor Packs:bool
基本类型。protocol.packet.resourcepackstackpacket.include_editor_packs.descriptionWhen connecting to an Editor world, include the vanilla editor packs in the stack