mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-11-06 22:55:12 +00:00
109 lines
3.6 KiB
JSON
109 lines
3.6 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "2435373266",
|
|
"x-format-version": "MISSING VERSION",
|
|
"x-minecraft-version": "1.21.120",
|
|
"x-protocol-version": 859,
|
|
"definitions": {
|
|
"3767995393": {
|
|
"title": "struct UpdateTradePacketPayload",
|
|
"type": "object",
|
|
"properties": {
|
|
"Container Id": {
|
|
"type": "integer",
|
|
"x-underlying-type": "uint8",
|
|
"x-ordinal-index": 0
|
|
},
|
|
"Data": {
|
|
"description": "NBT Data.",
|
|
"$ref": "#/definitions/4158325036",
|
|
"x-ordinal-index": 9
|
|
},
|
|
"Display Name": {
|
|
"type": "string",
|
|
"x-ordinal-index": 6
|
|
},
|
|
"Entity Unique Id": {
|
|
"$ref": "#/definitions/1221684255",
|
|
"x-ordinal-index": 4
|
|
},
|
|
"Last Trading Player": {
|
|
"$ref": "#/definitions/1221684255",
|
|
"x-ordinal-index": 5
|
|
},
|
|
"Size": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int32",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 2
|
|
},
|
|
"Trader Tier": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int32",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 3
|
|
},
|
|
"Type": {
|
|
"type": "integer",
|
|
"x-underlying-type": "uint8",
|
|
"x-ordinal-index": 1
|
|
},
|
|
"Use New Trade Screen": {
|
|
"type": "boolean",
|
|
"x-ordinal-index": 7
|
|
},
|
|
"Using Economy Trade": {
|
|
"description": "When set to false, it means the packet comes from the old Trade Component.",
|
|
"type": "boolean",
|
|
"x-ordinal-index": 8
|
|
}
|
|
},
|
|
"required": [
|
|
"Container Id",
|
|
"Data",
|
|
"Display Name",
|
|
"Entity Unique Id",
|
|
"Last Trading Player",
|
|
"Size",
|
|
"Trader Tier",
|
|
"Type",
|
|
"Use New Trade Screen",
|
|
"Using Economy Trade"
|
|
]
|
|
},
|
|
"1221684255": {
|
|
"title": "ActorUniqueID",
|
|
"type": "object",
|
|
"properties": {
|
|
"Actor Unique ID": {
|
|
"type": "integer",
|
|
"x-underlying-type": "int64",
|
|
"x-serialization-options": [
|
|
"Compression"
|
|
],
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"Actor Unique ID"
|
|
]
|
|
}
|
|
},
|
|
"title": "UpdateTradePacket",
|
|
"description": "This is used when the player trades with an npc. This sends all of the updated trade info in one big ol' packet.",
|
|
"type": "object",
|
|
"properties": {
|
|
"mPayload": {
|
|
"$ref": "#/definitions/3767995393",
|
|
"x-ordinal-index": 0
|
|
}
|
|
},
|
|
"$metaProperties": {
|
|
"[cereal:packet]": 80,
|
|
"[cereal:packet_details]": ""
|
|
}
|
|
} |