← Type index

InventoryAction

Object datagramWire order
0SourceInventorySource · variable
1Slotvaruint32 · variable (up to 5 bytes)
2From ItemNetworkItemStackDescriptor · variable
3To ItemNetworkItemStackDescriptor · variable

Fields

4 top-level fields
  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

Packet references

6 references
  1. InventoryTransactionPacket
    Transaction › InventoryMismatchData › InventoryMismatchData › Actions › InventoryTransaction › Actions › InventoryAction
  2. InventoryTransactionPacket
    Transaction › ItemReleaseInventoryTransaction › ItemReleaseInventoryTransaction › Actions › InventoryTransaction › Actions › InventoryAction
  3. InventoryTransactionPacket
    Transaction › ItemUseInventoryTransaction › ItemUseInventoryTransaction › Actions › InventoryTransaction › Actions › InventoryAction
  4. InventoryTransactionPacket
    Transaction › ItemUseOnActorInventoryTransaction › ItemUseOnActorInventoryTransaction › Actions › InventoryTransaction › Actions › InventoryAction
  5. InventoryTransactionPacket
    Transaction › NormalTransactionData › NormalTransactionData › Actions › InventoryTransaction › Actions › InventoryAction
  6. PlayerAuthInputPacket
    Item Use Transaction › PackedItemUseLegacyInventoryTransaction › Item Use Transaction › ItemUseInventoryTransaction › Actions › InventoryTransaction › Actions › InventoryAction

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this type.