PlayerActionPacket¶
文档版本:r/21_u4
协议版本:748
PlayerActionPacket数据包,数字ID是36。该数据包用于protocol.packet.playeractionpacket.description
结构¶
digraph "PlayerActionPacket" {
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="PlayerActionPacket",comment="name: \"PlayerActionPacket\", typeName: \"\", id: 0, branchId: 36, recurseId: -1, attributes: 0, notes: \"\""];
1 [label="Player Runtime ID",comment="name: \"Player 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="Action",comment="name: \"Action\", typeName: \"\", id: 3, branchId: 0, recurseId: -1, attributes: 0, notes: \"See enum table for use cases\""];
4 [label="varint",comment="name: \"varint\", typeName: \"\", id: 4, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
5 [label="Block Position",comment="name: \"Block Position\", typeName: \"NetworkBlockPosition\", id: 5, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
6 [label="NetworkBlockPosition",comment="name: \"NetworkBlockPosition\", typeName: \"\", id: 6, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
7 [label="Result Pos",comment="name: \"Result Pos\", typeName: \"NetworkBlockPosition\", id: 7, branchId: 0, recurseId: -1, attributes: 256, notes: \"\""];
8 [label="NetworkBlockPosition",comment="name: \"NetworkBlockPosition\", typeName: \"\", id: 8, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
9 [label="Face",comment="name: \"Face\", typeName: \"\", id: 9, branchId: 0, recurseId: -1, attributes: 0, notes: \"\""];
10 [label="varint",comment="name: \"varint\", typeName: \"\", id: 10, branchId: 0, recurseId: -1, attributes: 512, notes: \"\""];
{ rank = max;2;4;6;8;10}
}
字段¶
- Player Runtime ID:ActorRuntimeID
- 特殊类型。protocol.packet.playeractionpacket.player_runtime_id.description
- Action:varint
- 基本类型枚举。protocol.packet.playeractionpacket.action.descriptionSee enum table for use cases枚举值如下:
-
键 值 描述 Unknown-1protocol.enum.unknown StartDestroyBlock0protocol.enum.startdestroyblock AbortDestroyBlock1protocol.enum.abortdestroyblock StopDestroyBlock2protocol.enum.stopdestroyblock GetUpdatedBlock3protocol.enum.getupdatedblock DropItem4protocol.enum.dropitem StartSleeping5protocol.enum.startsleeping StopSleeping6protocol.enum.stopsleeping Respawn7protocol.enum.respawn StartJump8protocol.enum.startjump StartSprinting9protocol.enum.startsprinting StopSprinting10protocol.enum.stopsprinting StartSneaking11protocol.enum.startsneaking StopSneaking12protocol.enum.stopsneaking CreativeDestroyBlock13protocol.enum.creativedestroyblock ChangeDimensionAck14protocol.enum.changedimensionack StartGliding15protocol.enum.startgliding StopGliding16protocol.enum.stopgliding DenyDestroyBlock17protocol.enum.denydestroyblock CrackBlock18protocol.enum.crackblock ChangeSkin19protocol.enum.changeskin DEPRECATED_UpdatedEnchantingSeed20protocol.enum.deprecated_updatedenchantingseed StartSwimming21protocol.enum.startswimming StopSwimming22protocol.enum.stopswimming StartSpinAttack23protocol.enum.startspinattack StopSpinAttack24protocol.enum.stopspinattack InteractWithBlock25protocol.enum.interactwithblock PredictDestroyBlock26protocol.enum.predictdestroyblock ContinueDestroyBlock27protocol.enum.continuedestroyblock StartItemUseOn28protocol.enum.startitemuseon StopItemUseOn29protocol.enum.stopitemuseon HandledTeleport30protocol.enum.handledteleport MissedSwing31protocol.enum.missedswing StartCrawling32protocol.enum.startcrawling StopCrawling33protocol.enum.stopcrawling StartFlying34protocol.enum.startflying StopFlying35protocol.enum.stopflying ClientAckServerData36protocol.enum.clientackserverdata StartUsingItem37protocol.enum.startusingitem Count38protocol.enum.count
- Block Position:NetworkBlockPosition
- 特殊类型。protocol.packet.playeractionpacket.block_position.description
- Result Pos:NetworkBlockPosition
- 特殊类型。protocol.packet.playeractionpacket.result_pos.description
- Face:varint
- 基本类型。protocol.packet.playeractionpacket.face.description