diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-15 14:41:25 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-15 14:41:25 -0800 |
commit | d84827914b8fd867524a01a07ec564afac379ca3 (patch) | |
tree | 1302802407ef745e2ab797e82aaf70589386bad9 /src | |
parent | 3fd9f09e01d7af7e811309521ea52f809c760e44 (diff) | |
download | bukkit-d84827914b8fd867524a01a07ec564afac379ca3.tar bukkit-d84827914b8fd867524a01a07ec564afac379ca3.tar.gz bukkit-d84827914b8fd867524a01a07ec564afac379ca3.tar.lz bukkit-d84827914b8fd867524a01a07ec564afac379ca3.tar.xz bukkit-d84827914b8fd867524a01a07ec564afac379ca3.zip |
Added setContents() to Inventory.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/inventory/Inventory.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/inventory/Inventory.java b/src/main/java/org/bukkit/inventory/Inventory.java index 149f8185..b05acf96 100644 --- a/src/main/java/org/bukkit/inventory/Inventory.java +++ b/src/main/java/org/bukkit/inventory/Inventory.java @@ -53,6 +53,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 * * @param materialId The materialId to check for |