Added setContents() to Inventory.

This commit is contained in:
sk89q 2011-01-15 14:41:25 -08:00
parent 3fd9f09e01
commit d84827914b

View File

@ -52,6 +52,13 @@ public interface Inventory {
*/ */
public ItemStack[] getContents(); public ItemStack[] getContents();
/**
* Set the inventory's contents
*
* @return All the ItemStacks from all slots
*/
public void setContents(ItemStack[] items);
/** /**
* Check if the inventory contains any ItemStacks with the given materialId * Check if the inventory contains any ItemStacks with the given materialId
* *