mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-11-07 10:35:13 +00:00
107 lines
4.3 KiB
JSON
107 lines
4.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "2445517866",
|
|
"x-format-version": "MISSING VERSION",
|
|
"x-minecraft-version": "1.21.120",
|
|
"x-protocol-version": 859,
|
|
"definitions": {
|
|
"4004946602": {
|
|
"title": "Vec3",
|
|
"type": "object",
|
|
"properties": {
|
|
"X": {
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Y": {
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Z": {
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 2
|
|
}
|
|
},
|
|
"required": [
|
|
"X",
|
|
"Y",
|
|
"Z"
|
|
]
|
|
},
|
|
"3593432615": {
|
|
"title": "SetActorMotionPacketPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Motion": {
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Target Runtime ID": {
|
|
"$ref": "#/definitions/3541243607",
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Tick": {
|
|
"description": "If this packet is referring to the player or a client predicted vehicle they are in control of, this should be the most recently processed PlayerInputTick from their PlayerAuthInputPacket. Otherwise zero.",
|
|
"$ref": "#/definitions/1497397410",
|
|
"x-ordinal-index": 2
|
|
}
|
|
},
|
|
"required": [
|
|
"Motion",
|
|
"Target Runtime ID",
|
|
"Tick"
|
|
]
|
|
},
|
|
"1497397410": {
|
|
"title": "PlayerInputTick",
|
|
"type": "object",
|
|
"properties": {
|
|
"Input tick": {
|
|
"description": "In server authoritative movement mode the client supplies this in PlayerAuthInputPacket.\nFor any client-bound packets containing a tick, the server should supply the tick value corresponding to the most recently processed PlayerAuthInputPacket.\nThis allows the client to adjust any client predictions made while the packet was in flight.\nIf the packet is being sent to the client but not relating to data of the player or a client-predicted vehicle, it can be zero.\nIt is also acceptable to specify zero for players, although this may lead to minor visual flickers and less smooth application of CorrectPlayerMovePredictionPacket.",
|
|
"type": "integer",
|
|
"x-underlying-type": "uint64",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Input tick"
|
|
]
|
|
},
|
|
"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": "SetActorMotionPacket",
|
|
"description": "This is used for the server to set the velocity of a client actor.",
|
|
"type": "object",
|
|
"properties": {
|
|
"mPayload": {
|
|
"$ref": "#/definitions/3593432615",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"$metaProperties": {
|
|
"[cereal:packet]": 40,
|
|
"[cereal:packet_details]": "\n\tIt is primarily relevant for client predicted entities like the player or a boat or horse they are in control of.\n\tFor most other actor types it does nothing.<br>\n\tThis is one of the packets that can directly affect player motion, for others, see:<br>\n\t- MovePlayerPacket<br>\n\t- CorrectPlayerMovePredictionPacket\n\t"
|
|
}
|
|
} |