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

85 lines
3.4 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "2014591518",
"x-format-version": "MISSING VERSION",
"x-minecraft-version": "1.21.120",
"x-protocol-version": 859,
"definitions": {
"679565431": {
"title": "struct MapInfoRequestPacketPayload",
"type": "object",
"properties": {
"Client Pixels List": {
"description": "These are sent from the client to tell the Server map about terrain pixels it doesn't know about",
"type": "array",
"items": {
"$ref": "#/definitions/2650181602"
},
"x-serialization-options": [
"NoSizeCompression"
],
"x-ordinal-index": 1,
"maxItems": 16384
},
"Map Unique ID": {
"$ref": "#/definitions/1221684255",
"x-ordinal-index": 0
}
},
"required": [
"Client Pixels List",
"Map Unique ID"
]
},
"2650181602": {
"title": "struct `anonymous-namespace'::unity_5eb3f6f7962d9979d50bf7c8efaa92c9::ClientPixelsProxy",
"type": "object",
"properties": {
"index": {
"type": "integer",
"x-underlying-type": "uint16",
"x-ordinal-index": 1
},
"pixel": {
"type": "integer",
"x-underlying-type": "uint32",
"x-ordinal-index": 0
}
},
"required": [
"index",
"pixel"
]
},
"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": "MapInfoRequestPacket",
"description": "In the case of the client being unable to find map data for a map item it sends a uuid for a map to the server.",
"type": "object",
"properties": {
"mPayload": {
"$ref": "#/definitions/679565431",
"x-ordinal-index": 0
}
},
"$metaProperties": {
"[cereal:packet]": 68,
"[cereal:packet_details]": "\n\tIf the server finds the map, it sends the data back. If it can't find the map, it creates it and sends the map and data back. \n\t(the map creation data packet and the map data packet are separate packets). \n\tThe response from the server potentially has to load from disk, just an fyi. \n\tThis packet is fired via map item tick, if the map data we have is invalid, or if the map is placed in an item frame.\n\n\tFor Client Side Generation when we re-sample pixels from the Client's ChunkSource we need to inform the Server's map about\n\tthese new pixels so that it can save them to LevelStorage. Use this packet to send to the Server the extra pixels\n\t"
}
}