mirror of
https://github.com/Mojang/bedrock-protocol-docs.git
synced 2025-10-14 12:04:59 +00:00
163 lines
4.6 KiB
HTML
163 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>ServerboundLoadingScreenPacket (312)</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>ServerboundLoadingScreenPacket (312)</h1>
|
|
<div class="description">Sent from the client to the server to message to the server about the state of the loading screen.</div>
|
|
<div class="description">In order for the client to send a packet with StartLoadingScreen, the server needs to anticipate that this packet is coming.
|
|
If the server doesn't expect that we are about to start a loading screen, the server will disconnect the client.
|
|
EndLoadingScreen is sent by the client when the loading screen closes.
|
|
The Loading Screen Id field will be empty if the loading screen is triggered by the initial loading into of a world.
|
|
The Loading Screen Id field will have a value if sent by the server. This currently happens as part of ChangeDimensionPacket if the player is alive.</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>Loading Screen Packet Type</strong></td>
|
|
<td>varint32</td>
|
|
<td>0</td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3"><div style="margin-left: 20px; margin-top: 5px; margin-bottom: 5px;">
|
|
<strong>Enum Values:</strong>
|
|
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse; width: 100%; max-width: 760px; font-size: 12px;">
|
|
<thead>
|
|
<tr style="background-color: #e8e8e8;">
|
|
<th style="width: 40px;">Index</th>
|
|
<th>Value</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td style="text-align: center;">0</td>
|
|
<td><code>Unknown</code></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: center;">1</td>
|
|
<td><code>StartLoadingScreen</code></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align: center;">2</td>
|
|
<td><code>EndLoadingScreen</code></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div></td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Loading Screen Id</strong></td>
|
|
<td>uint32</td>
|
|
<td>1</td>
|
|
<td>This will be set if the server gives us a value. If the server doesn't expect this value, then the client will get disconnected.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |