1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-07 01:15:12 +00:00
Files
bedrock-protocol-docs/json/CameraPresetsPacket.json

297 lines
9.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1161582602",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"2327787693": {
"title": "CameraPresetsPacketPayload",
"type": "object",
"properties": {
"Camera Presets": {
"$ref": "#/definitions/1531171666",
"x-ordinal-index": 0
}
},
"required": [
"Camera Presets"
]
},
"1492643634": {
"title": "struct SharedTypes::Reference<5>",
"type": "string"
},
"1531171666": {
"title": "CameraPresets",
"type": "object",
"properties": {
"Presets": {
"type": "array",
"items": {
"$ref": "#/definitions/3379856411"
},
"x-ordinal-index": 0
}
},
"required": [
"Presets"
]
},
"3573822430": {
"title": "struct SharedTypes::Identifier<7>",
"type": "string"
},
"3379856411": {
"title": "CameraPresets",
"type": "object",
"properties": {
"Aim Assist": {
"$ref": "#/definitions/3530470262",
"x-ordinal-index": 20
},
"Block Listening Radius": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 12
},
"Continue Targeting": {
"type": "boolean",
"x-ordinal-index": 11
},
"Control Scheme": {
"title": "Control Scheme",
"type": "string",
"enum": [
"locked_player_relative_strafe",
"camera_relative",
"camera_relative_strafe",
"player_relative",
"player_relative_strafe"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 21
},
"Entity Offset": {
"description": "Changing the camera's pivot point from the center of the entity",
"$ref": "#/definitions/4004946602",
"x-ordinal-index": 14
},
"Horizontal Rotation Limit": {
"$ref": "#/definitions/4021724221",
"x-ordinal-index": 9
},
"Inherit From": {
"$ref": "#/definitions/3640473056",
"x-ordinal-index": 1
},
"Listener": {
"title": "SharedTypes::Comprehensive::CameraPreset::AudioListener",
"type": "string",
"enum": [
"Camera",
"Player"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 18
},
"Name": {
"$ref": "#/definitions/3573822430",
"x-ordinal-index": 0
},
"Player Effects": {
"type": "boolean",
"x-ordinal-index": 19
},
"Pos X": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 2
},
"Pos Y": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 3
},
"Pos Z": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 4
},
"Radius": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 15
},
"Rot X": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 5
},
"Rot Y": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 6
},
"Rotation Speed": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 7
},
"Snap to Target": {
"type": "boolean",
"x-ordinal-index": 8
},
"Vertical Rotation Limit": {
"$ref": "#/definitions/4021724221",
"x-ordinal-index": 10
},
"View Offset": {
"$ref": "#/definitions/4021724221",
"x-ordinal-index": 13
},
"Yaw Limit Max": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 17
},
"Yaw Limit Min": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 16
}
},
"required": [
"Aim Assist",
"Block Listening Radius",
"Continue Targeting",
"Control Scheme",
"Entity Offset",
"Horizontal Rotation Limit",
"Inherit From",
"Listener",
"Name",
"Player Effects",
"Pos X",
"Pos Y",
"Pos Z",
"Radius",
"Rot X",
"Rot Y",
"Rotation Speed",
"Snap to Target",
"Vertical Rotation Limit",
"View Offset",
"Yaw Limit Max",
"Yaw Limit Min"
]
},
"3640473056": {
"title": "struct SharedTypes::Reference<7>",
"type": "string"
},
"3530470262": {
"title": "SharedTypes::Comprehensive::CameraPresetAimAssistDefinition",
"type": "object",
"properties": {
"Distance": {
"type": "number",
"x-underlying-type": "float",
"x-ordinal-index": 3
},
"Preset Id": {
"$ref": "#/definitions/1492643634",
"x-ordinal-index": 0
},
"Target Mode": {
"title": "Aim-Assist Target Mode",
"type": "string",
"enum": [
"angle",
"distance"
],
"x-underlying-type": "uint8",
"x-serialization-options": [
"EnumAsValue"
],
"x-ordinal-index": 1
},
"View Angle": {
"$ref": "#/definitions/4021724221",
"x-ordinal-index": 2
}
},
"required": [
"Distance",
"Preset Id",
"Target Mode",
"View Angle"
]
},
"4021724221": {
"title": "Vec2",
"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
}
},
"required": [
"X",
"Y"
]
},
"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"
]
}
},
"title": "CameraPresetsPacket",
"description": "Used to sync CameraPresets data from server to clients.",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/2327787693",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 198,
"[cereal:packet_details]": ""
}
}