1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 15:55:09 +00:00
Files
bedrock-protocol-docs/json/PlayerActionPacket.json

159 lines
5.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "4021593386",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"1697950331": {
"title": "PlayerActionPacketPayload",
"type": "object",
"properties": {
"Action": {
"title": "PlayerActionType",
"type": "string",
"enum": [
"Unknown",
"StartDestroyBlock",
"AbortDestroyBlock",
"StopDestroyBlock",
"GetUpdatedBlock",
"DropItem",
"StartSleeping",
"StopSleeping",
"Respawn",
"StartJump",
"StartSprinting",
"StopSprinting",
"StartSneaking",
"StopSneaking",
"CreativeDestroyBlock",
"ChangeDimensionAck",
"StartGliding",
"StopGliding",
"DenyDestroyBlock",
"CrackBlock",
"ChangeSkin",
"UpdatedEnchantingSeed",
"StartSwimming",
"StopSwimming",
"StartSpinAttack",
"StopSpinAttack",
"InteractWithBlock",
"PredictDestroyBlock",
"ContinueDestroyBlock",
"StartItemUseOn",
"StopItemUseOn",
"HandledTeleport",
"MissedSwing",
"StartCrawling",
"StopCrawling",
"StartFlying",
"StopFlying",
"ClientAckServerData",
"StartUsingItem",
"Count"
],
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression",
"EnumAsValue"
],
"x-ordinal-index": 1
},
"Block Position": {
"$ref": "#/definitions/269289973",
"x-ordinal-index": 2
},
"Face": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 4
},
"Player Runtime ID": {
"$ref": "#/definitions/3541243607",
"x-ordinal-index": 0
},
"Result Pos": {
"$ref": "#/definitions/269289973",
"x-ordinal-index": 3
}
},
"required": [
"Action",
"Block Position",
"Face",
"Player Runtime ID",
"Result Pos"
]
},
"269289973": {
"title": "NetworkBlockPosition",
"type": "object",
"properties": {
"X": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
},
"Y": {
"type": "integer",
"x-underlying-type": "uint32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 1
},
"Z": {
"type": "integer",
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 2
}
},
"required": [
"X",
"Y",
"Z"
]
},
"3541243607": {
"title": "ActorRuntimeID",
"type": "object",
"properties": {
"Actor Runtime ID": {
"type": "integer",
"x-underlying-type": "uint64",
"x-serialization-options": [
"Compression"
],
"x-ordinal-index": 0
}
},
"required": [
"Actor Runtime ID"
]
}
},
"title": "PlayerActionPacket",
"description": "Sent from the client whenever the player performs an action (dashing, un-dashing, use an item, mine/hit, use a block, etc).",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/1697950331",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 36,
"[cereal:packet_details]": "The expected actions change depending on the ServerAuthMovementMode specified in the StartGamePacket.\n\tSee the PlayerActionType enum for details on which have differing behavior.\n\tSee also PlayerAuthInputPacket and InventoryTransactionPacket for similar types of player actions."
}
}