1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-11-06 08:55:12 +00:00
Files
bedrock-protocol-docs/json/ItemRegistryPacket.json

88 lines
2.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "1824368073",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"202602910": {
"title": "ItemRegistryPacketPayload",
"type": "object",
"properties": {
"Item Data": {
"type": "array",
"items": {
"$ref": "#/definitions/3560424247"
},
"x-ordinal-index": 0
}
},
"required": [
"Item Data"
]
},
"3560424247": {
"title": "ItemData",
"type": "object",
"properties": {
"Is Component Based": {
"type": "boolean",
"x-ordinal-index": 2
},
"Item Component Data": {
"$ref": "#/definitions/4158325036",
"x-ordinal-index": 4
},
"Item Id": {
"description": "Block id's < 256 (can be negative); Item id's >= 257",
"type": "integer",
"x-underlying-type": "int16",
"x-ordinal-index": 1
},
"Item Name": {
"$ref": "#/definitions/2715320761",
"x-ordinal-index": 0
},
"Item Version": {
"title": "ItemVersion",
"type": "string",
"enum": [
"Legacy",
"DataDriven",
"None"
],
"x-underlying-type": "int32",
"x-serialization-options": [
"Compression",
"EnumAsValue"
],
"x-ordinal-index": 3
}
},
"required": [
"Is Component Based",
"Item Component Data",
"Item Id",
"Item Name",
"Item Version"
]
},
"2715320761": {
"title": "hashed_string",
"type": "string"
}
},
"title": "ItemRegistryPacket",
"description": "Item data from the server. Contains component information.",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/202602910",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 162,
"[cereal:packet_details]": "This packet needs to be sent immediately after the StartGamePacket for primary clients."
}
}