← Type index

cerealizer<NetworkItemStackDescriptor>::SerializedData

Object datagramWire order
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
  1. 0IdSend fixed Id of 0 for invalid itemint16
  2. 1Stack sizeThe number of items in the stack.uint16
  3. 2Aux valueItem auxiliary/metadata value. Used to distinguish item variants. Ignored for block items where aux is always 0.Compressionvaruint32
  4. 3Net Id VariantoptionalOptional network ID variant used to track item stack identity across client and server.CompressionItemStackNetIdVariant
  5. 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.Compressionvaruint32
  6. 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 references

No packet includes this type.

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.