mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-11-06 11:15:17 +00:00
281 lines
9.8 KiB
JSON
281 lines
9.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "122829297",
|
|
"x-format-version": "MISSING VERSION",
|
|
"x-minecraft-version": "1.21.120",
|
|
"x-protocol-version": 859,
|
|
"definitions": {
|
|
"96730425": {
|
|
"title": "struct ArrowDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Arrow End Location": {
|
|
"description": "Vec3 end location of the debug arrow.",
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Arrow Head Length": {
|
|
"description": "Length of the head of the debug arrow.",
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Arrow Head Radius": {
|
|
"description": "Radius of the head of the debug arrow.",
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 2
|
|
},
|
|
"Num Segments": {
|
|
"description": "Integer number of segments used for the debug arrow's head.",
|
|
"type": "integer",
|
|
"x-underlying-type": "uint8",
|
|
"x-ordinal-index": 3
|
|
}
|
|
},
|
|
"required": [
|
|
"Arrow End Location",
|
|
"Arrow Head Length",
|
|
"Arrow Head Radius",
|
|
"Num Segments"
|
|
]
|
|
},
|
|
"818882612": {
|
|
"title": "struct DebugDrawerPacketPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Array of debug shapes (can be a mix of new, updated or removed)": {
|
|
"description": "Semantic version string",
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/3553763893"
|
|
},
|
|
"x-ordinal-index": 0,
|
|
"maxItems": 1048576
|
|
}
|
|
},
|
|
"required": [
|
|
"Array of debug shapes (can be a mix of new, updated or removed)"
|
|
]
|
|
},
|
|
"2883805925": {
|
|
"title": "struct SphereDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Num Segments": {
|
|
"description": "Integer number of segments used for the debug circle or sphere.",
|
|
"type": "integer",
|
|
"x-underlying-type": "uint8",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Num Segments"
|
|
]
|
|
},
|
|
"3553763893": {
|
|
"title": "struct ShapeDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Color": {
|
|
"description": "Color (ARGB Hex string) of the debug shape.",
|
|
"$ref": "#/definitions/1315424487",
|
|
"x-ordinal-index": 6
|
|
},
|
|
"Dimension ID": {
|
|
"description": "Currently supported: (0 -> Overworld, 1 -> Nether, 2 -> The End, 3 -> Undefined)",
|
|
"$ref": "#/definitions/2872336518",
|
|
"x-ordinal-index": 7
|
|
},
|
|
"Extra Shape Data": {
|
|
"description": "Extra payload (variant) holding data specific to the type of shape (such as text string for the text shape).",
|
|
"oneOf": [
|
|
{
|
|
"type": "null"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/96730425"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/3254662607"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/3006597033"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/3414789328"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/2883805925"
|
|
}
|
|
]
|
|
},
|
|
"Location": {
|
|
"description": "Vec3 location of the debug shape in the world.",
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 2
|
|
},
|
|
"NetworkId": {
|
|
"description": "uint64 network id used to identify the matching shape on the client as the server",
|
|
"type": "integer",
|
|
"x-underlying-type": "uint64",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Rotation": {
|
|
"description": "Vec3 (Euler angles in radians, PYR) rotation of the debug shape in the world.",
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 4
|
|
},
|
|
"Scale": {
|
|
"description": "Float scale of the debug shape in the world.",
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 3
|
|
},
|
|
"Shape Type": {
|
|
"title": "enum ScriptModuleDebugUtilities::ScriptDebugShapeType",
|
|
"description": "Byte representing the type of debug shape (Line, Box, Sphere, Circle, Text).",
|
|
"type": "string",
|
|
"enum": [
|
|
"Line",
|
|
"Box",
|
|
"Sphere",
|
|
"Circle",
|
|
"Text",
|
|
"Arrow"
|
|
],
|
|
"x-underlying-type": "uint8",
|
|
"x-serialization-options": [
|
|
"EnumAsValue"
|
|
],
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Total Time Left": {
|
|
"description": "The total time left in seconds until this debug shape will be removed (0 meaning never).",
|
|
"type": "number",
|
|
"x-underlying-type": "float",
|
|
"x-ordinal-index": 5
|
|
}
|
|
},
|
|
"required": [
|
|
"Dimension ID",
|
|
"NetworkId"
|
|
]
|
|
},
|
|
"3254662607": {
|
|
"title": "struct TextDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Text": {
|
|
"description": "Text (string) of the debug text shape.",
|
|
"type": "string",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Text"
|
|
]
|
|
},
|
|
"1315424487": {
|
|
"title": "Color",
|
|
"type": "object",
|
|
"properties": {
|
|
"Color": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int32",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Color"
|
|
]
|
|
},
|
|
"2872336518": {
|
|
"title": "DimensionType",
|
|
"type": "object",
|
|
"properties": {
|
|
"value": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int32",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"value"
|
|
]
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"3414789328": {
|
|
"title": "struct LineDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Line End Location": {
|
|
"description": "Vec3 end location of the debug line.",
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Line End Location"
|
|
]
|
|
},
|
|
"3006597033": {
|
|
"title": "struct BoxDataPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Box Bound": {
|
|
"description": "Vec3 bound of the debug box shape.",
|
|
"$ref": "#/definitions/4004946602",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Box Bound"
|
|
]
|
|
}
|
|
},
|
|
"title": "DebugDrawerPacket",
|
|
"description": "Send debug drawing shape info (from scripting) to the client for rendering",
|
|
"type": "object",
|
|
"properties": {
|
|
"mPayload": {
|
|
"$ref": "#/definitions/818882612",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"$metaProperties": {
|
|
"[cereal:packet]": 328,
|
|
"[cereal:packet_details]": ""
|
|
}
|
|
} |