← Type index

ItemReleaseInventoryTransaction

Object datagramWire order
0ActionsInventoryTransaction · variable
1Action Typevarint32 · variable (up to 5 bytes)
2Slotvarint32 · variable (up to 5 bytes)
3ItemNetworkItemStackDescriptor · variable
4From PositionVec3 · variable
5Handuint8 · 1 byte

Fields

6 top-level fields
  1. 0ActionsBase inventory actions. Lists the inventory slot changes associated with this transaction.InventoryTransaction
    1. 0ActionsList of inventory slot changes. Each action describes which container slot is changing and what the item descriptor transitions from and to.InventoryActionas array<InventoryAction>
      1. 0SourceThe inventory source identifying which container this action targets.InventorySource
        1. 0Source TypeThe inventory source type.CompressionEnum-as-ValueInventorySourceTypeas varuint32
          1. 0Container Inventory
          2. 1Global Inventory
          3. 2World Interaction
          4. 3Creative Inventory
          5. 99999Non Implemented Feature TODO
        2. 1Container IDoptionalContainer window ID. Present only for ContainerInventory and NonImplementedFeatureTODO source types.Compressionint8
        3. 2Bit FlagsoptionalSource flags. Present only for WorldInteraction source type.CompressionEnum-as-ValueInventorySourceFlagsas varuint32
          1. 0No Flag
          2. 1World Interaction Random
      2. 1SlotThe slot index within the source container.Compressionvaruint32
      3. 2From ItemThe item descriptor representing the state of the slot before this action.NetworkItemStackDescriptor
      4. 3To ItemThe item descriptor representing the desired state of the slot after this action.NetworkItemStackDescriptor
  2. 1Action TypeRelease: firing a bow or releasing a held item. Use: finishing charging a crossbow.CompressionEnum-as-ValueItemReleaseActionTypeas varint32
    1. 0Release
    2. 1Use
  3. 2SlotThe inventory slot of the item being released.Compressionvarint32
  4. 3ItemThe item stack descriptor of the item being released.NetworkItemStackDescriptor
  5. 4From PositionThe player's position when this transaction was sent.Vec3
  6. 5HandWhich hand the item being released is inCompressionEnum-as-ValueHandSlotas uint8
    1. 0Mainhand
    2. 1Offhand

Packet references

1 reference
  1. InventoryTransactionPacket
    Transaction › ItemReleaseInventoryTransaction › ItemReleaseInventoryTransaction

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.