Added setContents() to Inventory.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
Bukkit/Spigot 2011-01-15 14:41:25 -08:00
parent 650e0749d1
commit ea2c6665c0

View file

@ -52,6 +52,13 @@ public interface Inventory {
*/
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
*