跳转至

MobEquipmentPacket

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

MobEquipmentPacket数据包,数字ID是31。该数据包用于protocol.packet.mobequipmentpacket.description

结构

digraph "MobEquipmentPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
0 -> 7
7 -> 8
0 -> 9
9 -> 10

0 [label="MobEquipmentPacket",comment="name: \"MobEquipmentPacket\", typeName: \"\", id: 0, branchId: 31, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 1, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
2 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 2, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
3 [label="Item",comment="name: \"Item\", typeName: \"NetworkItemStackDescriptor\", id: 3, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
4 [label="NetworkItemStackDescriptor",comment="name: \"NetworkItemStackDescriptor\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Slot",comment="name: \"Slot\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
6 [label="byte",comment="name: \"byte\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="Selected Slot",comment="name: \"Selected Slot\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
8 [label="byte",comment="name: \"byte\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Container ID",comment="name: \"Container ID\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="byte",comment="name: \"byte\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8;10}

}

字段

MobEquipmentPacket
[target_runtime_id][item][slot][selected_slot][container_id]
Target Runtime ID:ActorRuntimeID
特殊类型。protocol.packet.mobequipmentpacket.target_runtime_id.description
Item:NetworkItemStackDescriptor
特殊类型。protocol.packet.mobequipmentpacket.item.description
Slot:byte
基本类型。protocol.packet.mobequipmentpacket.slot.description
Selected Slot:byte
基本类型。protocol.packet.mobequipmentpacket.selected_slot.description
Container ID:byte
基本类型枚举。protocol.packet.mobequipmentpacket.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