← Packet index

Packet 312

ServerboundLoadingScreenPacket

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.

Packet datagramWire order
HeaderID 312varuint
0Loading Screen Packet Typevarint32 · variable (up to 5 bytes)
1Loading Screen Iduint32 · 4 bytes

Serialized fields

2 top-level fields
  1. 0Loading Screen Packet TypeCompressionEnum-as-Valuevarint32
    1. 0StartLoadingScreen
    2. 1EndLoadingScreen
  2. 1Loading Screen Iduint32

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.