跳转至

InteractPacket

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

InteractPacket数据包,数字ID是33。该数据包用于protocol.packet.interactpacket.description

结构

digraph "InteractPacket" {
rankdir = LR
0
0 -> 1
1 -> 2
0 -> 3
3 -> 4
0 -> 5
5 -> 6
6 -> 7
5 -> 8
8 -> 9
9 -> 10
8 -> 11
11 -> 12
8 -> 13
13 -> 14

0 [label="InteractPacket",comment="name: \"InteractPacket\", typeName: \"\", id: 0, branchId: 33, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Action",comment="name: \"Action\", 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="Target Runtime ID",comment="name: \"Target Runtime ID\", typeName: \"ActorRuntimeID\", id: 3, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
4 [label="ActorRuntimeID",comment="name: \"ActorRuntimeID\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Dependency on 'Action == InteractUpdate || Action == StopRiding'",shape=note,comment="name: \"Dependency on 'Action == InteractUpdate || Action == StopRiding'\", typeName: \"\", id: 5, branchId: 0, recurseId: -1, attributes: 2, notes: \"\""];
6 [label="if (0)",shape=diamond,comment="name: \"if (0)\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 4, notes: \"\""];
7 [label="[No Data]",comment="name: \"[No Data]\", typeName: \"\", id: 7, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
8 [label="if (1)",shape=diamond,comment="name: \"if (1)\", typeName: \"\", id: 8, branchId: 1, recurseId: -1, attributes: 4, notes: \"\""];
9 [label="Position X",comment="name: \"Position X\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="float",comment="name: \"float\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
11 [label="Position Y",comment="name: \"Position Y\", typeName: \"\", id: 11, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
12 [label="float",comment="name: \"float\", typeName: \"\", id: 12, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
13 [label="Position Z",comment="name: \"Position Z\", typeName: \"\", id: 13, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
14 [label="float",comment="name: \"float\", typeName: \"\", id: 14, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;7;10;12;14}

}

字段

InteractPacket
[action][target_runtime_id][dependency_on_action_is_interactupdate_or_action_is_stopriding]
Action:byte
基本类型枚举。protocol.packet.interactpacket.action.description枚举值如下:
描述
Invalid 0 protocol.enum.invalid
StopRiding 3 protocol.enum.stopriding
InteractUpdate 4 protocol.enum.interactupdate
NpcOpen 5 protocol.enum.npcopen
OpenInventory 6 protocol.enum.openinventory
Target Runtime ID:ActorRuntimeID
特殊类型。protocol.packet.interactpacket.target_runtime_id.description

依赖于Action == InteractUpdate || Action == StopRiding

if (0):[No Data]
无数据
if (1)
[position_x][position_y][position_z]
Position X:float
基本类型。protocol.packet.interactpacket.dependency_on_action_is_interactupdate_or_action_is_stopriding.if_1.position_x.description
Position Y:float
基本类型。protocol.packet.interactpacket.dependency_on_action_is_interactupdate_or_action_is_stopriding.if_1.position_y.description
Position Z:float
基本类型。protocol.packet.interactpacket.dependency_on_action_is_interactupdate_or_action_is_stopriding.if_1.position_z.description