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.
HeaderID 366varuint
0Container Iduint8 · 1 byte
1Session Idvaruint64 · variable (up to 10 bytes)
2Titlestring · variable
3Slotsarray<NetworkItemStackDescriptor> · variable
Serialized fields
4 top-level fields- 0Container IdThe id of the screen being opened. Later inventory packets for the screen use this id.Enum-as-Value
uint8 - 1Session IdConnection-scoped opening identity. Every VirtualContainerClosePacket for the screen refers to it.Compression
varuint64 - 2TitleThe screen heading. Localized on the client when it names a localization key.
string - 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.
All builds
Changes between consecutive stable releases and preview builds.
- Released
- Protocol
- 2259
- Previous build
- 1.26.70-preview.23