2012-01-05 11:42:20 -05:00
[[Category Packet]]
[[Category Packet 317]]
{{packet|name=Clear Inventory|description=Used to set all of the items and item stacks in an inventory to nothing.|opcode=72|type=Fixed|length=2|revision=317}}
2013-03-24 11:38:14 -04:00
== Clear inventory ==
2012-01-05 11:42:20 -05:00
=== Description ===
This packet creates a loop through a given inventory interface id and sets the item ids to negative one and the item stacks to zero.
=== Packet Structure ===
{|border=2
! Data Type
! Description
|-
2014-06-17 12:17:40 -04:00
| [[Data Types#Little Endian|Little Endian]] [[Data Types#Standard data types|Short]]
2012-01-05 11:42:20 -05:00
| The interface ID.
|-
|}