跳转至

ContainerClosePacket

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

ContainerClosePacket数据包,数字ID是47。该数据包用于protocol.packet.containerclosepacket.description

结构

digraph "ContainerClosePacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4

0 [label="ContainerClosePacket",comment="name: \"ContainerClosePacket\", typeName: \"\", id: 0, branchId: 47, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Container ID",comment="name: \"Container ID\", 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="Server Initiated Close",comment="name: \"Server Initiated Close\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"True if the server initiated the closing\""];
4 [label="bool",comment="name: \"bool\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4}

}

字段

ContainerClosePacket
[container_id][server_initiated_close]
Container ID:byte
基本类型枚举。protocol.packet.containerclosepacket.container_id.description枚举值如下:
描述
CONTAINER_ID_NONE -1 protocol.enum.container_id_none
CONTAINER_ID_INVENTORY 0 protocol.enum.container_id_inventory
CONTAINER_ID_FIRST 1 protocol.enum.container_id_first
CONTAINER_ID_LAST 100 protocol.enum.container_id_last
CONTAINER_ID_OFFHAND 119 protocol.enum.container_id_offhand
CONTAINER_ID_ARMOR 120 protocol.enum.container_id_armor
CONTAINER_ID_SELECTION_SLOTS 122 protocol.enum.container_id_selection_slots
CONTAINER_ID_PLAYER_ONLY_UI 124 protocol.enum.container_id_player_only_ui
Server Initiated Close:bool
基本类型。protocol.packet.containerclosepacket.server_initiated_close.descriptionTrue if the server initiated the closing