Formatting
This commit is contained in:
parent
7acce26ec5
commit
191b17fcc1
|
@ -1,173 +1,294 @@
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"protocol_version": {
|
"protocol_version": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"game_version": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"packets": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"game_version": {
|
"name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"packets": {
|
"server": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"$ref": "#/definitions/field"
|
||||||
"properties": {
|
|
||||||
"id": { "type": "integer" },
|
|
||||||
"name": { "type": "string" },
|
|
||||||
"server": { "type": "boolean" },
|
|
||||||
"client": { "type": "boolean" },
|
|
||||||
"fields": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"$ref": "#/definitions/field"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"id",
|
|
||||||
"name"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"required": [
|
||||||
"type": {
|
"id",
|
||||||
"type": "object",
|
"name"
|
||||||
"oneOf": [
|
]
|
||||||
{
|
}
|
||||||
"properties": {
|
}
|
||||||
"type": {
|
},
|
||||||
"type": "string",
|
"definitions": {
|
||||||
"enum": [
|
"type": {
|
||||||
"bool",
|
"type": "object",
|
||||||
"byte", "ubyte",
|
"oneOf": [
|
||||||
"short", "ushort",
|
{
|
||||||
"int", "uint",
|
"properties": {
|
||||||
"long", "ulong",
|
"type": {
|
||||||
"float", "double",
|
"type": "string",
|
||||||
"itemstack", "optional_itemstack",
|
"enum": [
|
||||||
"itemstack_nbt", "optional_itemstack_nbt",
|
"bool",
|
||||||
"compoundtag",
|
"byte",
|
||||||
"synchedentitydata"
|
"ubyte",
|
||||||
]
|
"short",
|
||||||
}
|
"ushort",
|
||||||
}
|
"int",
|
||||||
},
|
"uint",
|
||||||
{
|
"long",
|
||||||
"properties": {
|
"ulong",
|
||||||
"type": { "type": "string", "const": "list" },
|
"float",
|
||||||
"item": { "$ref": "#/definitions/type" },
|
"double",
|
||||||
"size": { "type": "number" },
|
"itemstack",
|
||||||
"sizetype": { "type": "string" },
|
"optional_itemstack",
|
||||||
"maxsize": { "type": "integer" }
|
"itemstack_nbt",
|
||||||
},
|
"optional_itemstack_nbt",
|
||||||
"required": [ "item" ],
|
"compoundtag",
|
||||||
"oneOf": [
|
"synchedentitydata"
|
||||||
{ "required": [ "size" ] },
|
]
|
||||||
{ "required": [ "sizetype", "maxsize" ] }
|
}
|
||||||
]
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"type": { "type": "string", "const": "column_major_list" },
|
"type": {
|
||||||
"fields": {
|
"type": "string",
|
||||||
"type": "array",
|
"const": "list"
|
||||||
"items": { "$ref": "#/definitions/field" }
|
|
||||||
},
|
|
||||||
"size": { "type": "number" },
|
|
||||||
"sizetype": { "type": "string" },
|
|
||||||
"maxsize": { "type": "integer" }
|
|
||||||
},
|
|
||||||
"required": [ "fields" ],
|
|
||||||
"oneOf": [
|
|
||||||
{ "required": [ "size" ] },
|
|
||||||
{ "required": [ "sizetype", "maxsize" ] }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"properties": {
|
|
||||||
"type": { "type": "string", "enum": [ "string", "utfstring" ] },
|
|
||||||
"maxsize": { "type": "number" }
|
|
||||||
},
|
|
||||||
"required": [ "maxsize" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"properties": {
|
|
||||||
"type": { "type": "string", "const": "bytes" },
|
|
||||||
"size": { "type": "number" },
|
|
||||||
"sizetype": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"ubyte", "byte",
|
|
||||||
"ushort", "short",
|
|
||||||
"uint", "int"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"maxsize": { "type": "number" }
|
|
||||||
},
|
|
||||||
"oneOf": [
|
|
||||||
{ "required": [ "size" ] },
|
|
||||||
{ "required": [ "sizetype", "maxsize" ] }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"properties": {
|
|
||||||
"type": { "type": "string", "const": "bytes_compressed" },
|
|
||||||
"sizetype": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"ubyte", "byte",
|
|
||||||
"ushort", "short",
|
|
||||||
"uint", "int"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"maxsize": { "type": "number" },
|
|
||||||
"method": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [ "zlib", "gzip" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [ "method", "maxsize", "sizetype" ]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"properties": {
|
|
||||||
"type": { "type": "string", "const": "struct" },
|
|
||||||
"name": { "type": "string" },
|
|
||||||
"fields": {
|
|
||||||
"type": "array",
|
|
||||||
"items": { "$ref": "#/definitions/type" }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"if": { "$ref": "#/definitions/condition" },
|
|
||||||
"post": { "type": "array" },
|
|
||||||
"proptype": { "type": "string" }
|
|
||||||
},
|
},
|
||||||
|
"item": {
|
||||||
"required": [ "type" ]
|
"$ref": "#/definitions/type"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"sizetype": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"maxsize": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"item"
|
||||||
|
],
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"size"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"sizetype",
|
||||||
|
"maxsize"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"field": {
|
{
|
||||||
"allOf": [
|
"properties": {
|
||||||
{
|
"type": {
|
||||||
"properties": {
|
"type": "string",
|
||||||
"name": { "type": "string" }
|
"const": "column_major_list"
|
||||||
},
|
},
|
||||||
"required": [ "name" ]
|
"fields": {
|
||||||
},
|
"type": "array",
|
||||||
{
|
"items": {
|
||||||
"$ref": "#/definitions/type"
|
"$ref": "#/definitions/field"
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"sizetype": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"maxsize": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"fields"
|
||||||
|
],
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"size"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"sizetype",
|
||||||
|
"maxsize"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"condition": {
|
{
|
||||||
"type": "array"
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"string",
|
||||||
|
"utfstring"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxsize": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"maxsize"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "bytes"
|
||||||
|
},
|
||||||
|
"size": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"sizetype": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ubyte",
|
||||||
|
"byte",
|
||||||
|
"ushort",
|
||||||
|
"short",
|
||||||
|
"uint",
|
||||||
|
"int"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxsize": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"size"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"required": [
|
||||||
|
"sizetype",
|
||||||
|
"maxsize"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "bytes_compressed"
|
||||||
|
},
|
||||||
|
"sizetype": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ubyte",
|
||||||
|
"byte",
|
||||||
|
"ushort",
|
||||||
|
"short",
|
||||||
|
"uint",
|
||||||
|
"int"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"maxsize": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"method": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"zlib",
|
||||||
|
"gzip"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"method",
|
||||||
|
"maxsize",
|
||||||
|
"sizetype"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string",
|
||||||
|
"const": "struct"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"fields": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/type"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"if": {
|
||||||
|
"$ref": "#/definitions/condition"
|
||||||
|
},
|
||||||
|
"post": {
|
||||||
|
"type": "array"
|
||||||
|
},
|
||||||
|
"proptype": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"required": [
|
"field": {
|
||||||
"protocol_version",
|
"allOf": [
|
||||||
"game_version",
|
{
|
||||||
"packets"
|
"properties": {
|
||||||
]
|
"name": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/type"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"condition": {
|
||||||
|
"type": "array"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"protocol_version",
|
||||||
|
"game_version",
|
||||||
|
"packets"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
1415
packets.json
1415
packets.json
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue