1
0
mirror of https://github.com/Mojang/bedrock-protocol-docs.git synced 2025-10-18 16:05:40 +00:00
Files
bedrock-protocol-docs/docs/MapInfoRequestPacket.html

192 lines
5.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MapInfoRequestPacket (68)</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
padding: 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h1 {
color: #2c3e50;
border-bottom: 3px solid #3498db;
padding-bottom: 10px;
margin-top: 0;
}
h2 {
color: #34495e;
border-bottom: 2px solid #3498db;
padding-bottom: 5px;
margin-top: 30px;
}
h3 {
color: #555;
margin-top: 20px;
margin-bottom: 10px;
}
h4 {
color: #666;
margin-top: 15px;
margin-bottom: 8px;
}
table {
background-color: white;
font-size: 14px;
margin-bottom: 10px;
}
th {
font-weight: bold;
text-align: left;
padding: 8px !important;
}
td {
padding: 8px !important;
}
tr:nth-child(even) {
background-color: #f9f9f9;
}
tr:hover {
background-color: #e8f4f8;
}
.description {
color: #555;
font-style: italic;
margin: 10px 0 20px 0;
padding: 10px;
background-color: #f8f9fa;
border-left: 4px solid #3498db;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.packet-list {
columns: 3;
column-gap: 20px;
}
.packet-list li {
margin-bottom: 8px;
break-inside: avoid;
}
@media (max-width: 900px) {
.packet-list {
columns: 2;
}
}
@media (max-width: 600px) {
.packet-list {
columns: 1;
}
}
</style>
</head>
<body>
<div class="container">
<p><a href="index.html">← Back to Index</a></p>
<h1>MapInfoRequestPacket (68)</h1>
<div class="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.</div>
<div class="description">
If the server finds the map, it sends the data back. If it can&#x27;t find the map, it creates it and sends the map and data back.
(the map creation data packet and the map data packet are separate packets).
The response from the server potentially has to load from disk, just an fyi.
This 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.
For Client Side Generation when we re-sample pixels from the Client&#x27;s ChunkSource we need to inform the Server&#x27;s map about
these new pixels so that it can save them to LevelStorage. Use this packet to send to the Server the extra pixels
</div>
<div style="margin-left: 0px; margin-top: 10px;">
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2"><strong>Map Unique ID</strong></td>
<td>ActorUniqueID</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 10px;">
<h3>ActorUniqueID</h3>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Actor Unique ID</strong></td>
<td>varint64</td>
<td>0</td>
<td></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
<tr>
<td rowspan="2"><strong>Client Pixels List</strong></td>
<td>array&lt;struct `anonymous-namespace'::unity_5eb3f6f7962d9979d50bf7c8efaa92c9::ClientPixelsProxy&gt;</td>
<td>1</td>
<td>These are sent from the client to tell the Server map about terrain pixels it doesn&#x27;t know about</td>
</tr>
<tr>
<td colspan="3"><div style="margin-left: 20px; margin-top: 10px;">
<h3>struct `anonymous-namespace&#x27;::unity_5eb3f6f7962d9979d50bf7c8efaa92c9::ClientPixelsProxy ([&#x27;NoSizeCompression&#x27;]) (Array Item)</h3>
<table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 800px;">
<thead>
<tr style="background-color: #f0f0f0;">
<th>Field Name</th>
<th>Type</th>
<th>Ordinal Index</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>pixel</strong></td>
<td>uint32</td>
<td>0</td>
<td></td>
</tr>
<tr>
<td><strong>index</strong></td>
<td>uint16</td>
<td>1</td>
<td></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>