cerealizer<NetworkItemStackDescriptor>::SerializedData
0Idint16 · 2 bytes
1Stack sizeuint16 · 2 bytes
2Aux valuevaruint32 · variable (up to 5 bytes)
3Net Id VariantItemStackNetIdVariant · variable
4Block Runtime Idvaruint32 · variable (up to 5 bytes)
5User Data Bufferstring · variable
Fields
6 top-level fields- 0IdSend fixed Id of 0 for invalid item
int16 - 1Stack sizeThe number of items in the stack.
uint16 - 2Aux valueItem auxiliary/metadata value. Used to distinguish item variants. Ignored for block items where aux is always 0.Compression
varuint32 - 3Net Id VariantoptionalOptional network ID variant used to track item stack identity across client and server.CompressionItemStackNetIdVariant
- 4Block Runtime IdRuntime block state ID associated with this item when it represents a block. Used to identify the exact block state placed when the item is used.Compression
varuint32 - 5User Data BufferThe @ItemInstanceUserData.html#ItemInstanceUserData@ binary blob encoded as a String, so it's unsigned varint length prefixed. Get all your nbt+property bytes, calculate the length, write that length, THEN write the data.
string
Packet references
0 referencesNo packet includes this type.
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this type.
All builds
Changes between consecutive stable releases and preview builds.
No changes are recorded for this type.