mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-11-06 14:45:14 +00:00
65 lines
2.2 KiB
JSON
65 lines
2.2 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "3547543896",
|
|
"x-format-version": "MISSING VERSION",
|
|
"x-minecraft-version": "1.21.120",
|
|
"x-protocol-version": 859,
|
|
"definitions": {
|
|
"2680156961": {
|
|
"title": "struct RequestAbilityPacketPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Ability": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int32",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Bool": {
|
|
"type": "boolean",
|
|
"x-ordinal-index": 2
|
|
},
|
|
"Float": {
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 3
|
|
},
|
|
"Value Type": {
|
|
"title": "enum RequestAbilityPacketPayload::Type",
|
|
"type": "string",
|
|
"enum": [
|
|
"Unset",
|
|
"Bool",
|
|
"Float"
|
|
],
|
|
"x-underlying-type": "uint8",
|
|
"x-serialization-options": [
|
|
"EnumAsValue"
|
|
],
|
|
"x-ordinal-index": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"Ability",
|
|
"Bool",
|
|
"Float",
|
|
"Value Type"
|
|
]
|
|
}
|
|
},
|
|
"title": "RequestAbilityPacket",
|
|
"description": "Sent from client to server. Used to request an ability change.",
|
|
"type": "object",
|
|
"properties": {
|
|
"mPayload": {
|
|
"$ref": "#/definitions/2680156961",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"$metaProperties": {
|
|
"[cereal:packet]": 184,
|
|
"[cereal:packet_details]": "Once changed, the server will broadcast the updated state of abilities for that player. If the request is rejected, the caller will receive their reverted state of Abilities. Can only be used to modify the calling player. \t- mVariable: Info about this variable"
|
|
}
|
|
} |