跳转至

PlayerListPacket

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

PlayerListPacket数据包,数字ID63。该数据包用于protocol.packet.playerlistpacket.description

结构



PlayerListPacket




0

PlayerListPacket




1

Action



0->1






3



Dependency on 'Action'



0->3






2

byte



1->2






4

if (0)



3->4






122

if (1)



3->122






5

Add Player List



4->5






120

Is trusted skin



4->120






6

Entries Count



5->6






8

example element



5->8






7

unsigned varint



6->7






9

UUID



8->9






11

Target Actor ID



8->11






13

Player Name



8->13






15

XBL XUID



8->15






17

Platform Chat Id



8->17






19

Build Platform



8->19






21

Serialized Skin



8->21






114

Is Teacher?



8->114






116

Is Host?



8->116






118

Is SubClient



8->118






10

mce::UUID



9->10






12

ActorUniqueID



11->12






14

string



13->14






16

string



15->16






18

string



17->18






20

int



19->20






113

SerializedSkin



21->113






115

bool



114->115






117

bool



116->117






119

bool



118->119






121

bool



120->121






123

Remove Player List



122->123






124

Entries Count



123->124






126

example element



123->126






125

unsigned varint



124->125






127

UUID



126->127






128

mce::UUID



127->128




字段

PlayerListPacket
[action][dependency_on_action]
Action:byte
基本类型枚举。protocol.packet.playerlistpacket.action.description枚举值如下:
描述
Add 0 protocol.enum.add
Remove 1 protocol.enum.remove

依赖于Action

if (0)
[add_player_list][is_trusted_skin]
Add Player List
[entries_count][[example_element]..]
Entries Count:unsigned varint
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.entries_count.description
示例元素
[uuid][target_actor_id][player_name][xbl_xuid][platform_chat_id][build_platform][serialized_skin][is_teacher][is_host][is_subclient]
UUID:mce::UUID
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.uuid.description
Target Actor IDActorUniqueID
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.target_actor_id.description
Player Name:string
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.player_name.description
XBL XUID:string
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.xbl_xuid.description
Platform Chat Id:string
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.platform_chat_id.description
Build Platform:int
基本类型枚举。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.build_platform.description枚举值如下:
描述
Google 1 protocol.enum.google
iOS 2 protocol.enum.ios
OSX 3 protocol.enum.osx
Amazon 4 protocol.enum.amazon
GearVR 5 protocol.enum.gearvr
UWP 7 protocol.enum.uwp
Win32 8 protocol.enum.win32
Dedicated 9 protocol.enum.dedicated
tvOS_Deprecated 10 protocol.enum.tvos_deprecated
Sony 11 protocol.enum.sony
Nx 12 protocol.enum.nx
Xbox 13 protocol.enum.xbox
WindowsPhone_Deprecated 14 protocol.enum.windowsphone_deprecated
Linux 15 protocol.enum.linux
Unknown -1 protocol.enum.unknown
Serialized Skin:SerializedSkin
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.serialized_skin.description
Is Teacher?:bool
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.is_teacher.description
Is Host?:bool
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.is_host.description
Is SubClient:bool
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.add_player_list.example_element.is_subclient.description
Is trusted skin:bool
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_0.is_trusted_skin.description
if (1)
[remove_player_list]
Remove Player List
[entries_count][[example_element]..]
Entries Count:unsigned varint
基本类型。protocol.packet.playerlistpacket.dependency_on_action.if_1.remove_player_list.entries_count.description
示例元素
[uuid]
UUID:mce::UUID
特殊类型。protocol.packet.playerlistpacket.dependency_on_action.if_1.remove_player_list.example_element.uuid.description