← Packet index

Packet 366

VirtualContainerOpenPacket

Sent from the server to open a container screen onto a script owned virtual container, which has no block or entity.

Includes all initial slots and their server net IDs. The number of slots determines the container size.

Packet datagramWire order
HeaderID 366varuint
0Container Iduint8 · 1 byte
1Session Idvaruint64 · variable (up to 10 bytes)
2Titlestring · variable
3Slotsarray<NetworkItemStackDescriptor> · variable

Serialized fields

4 top-level fields
  1. 0Container IdThe id of the screen being opened. Later inventory packets for the screen use this id.Enum-as-Valueuint8
  2. 1Session IdConnection-scoped opening identity. Every VirtualContainerClosePacket for the screen refers to it.Compressionvaruint64
  3. 2TitleThe screen heading. Localized on the client when it names a localization key.string
  4. 3SlotsEvery initial slot, including empty slots and server net IDs. The array length is the capacity.NetworkItemStackDescriptoras array<NetworkItemStackDescriptor>

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.