From ea2c6665c0fa0173abcd6ae25a5ab5f5d50ec204 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 14:41:25 -0800 Subject: [PATCH] Added setContents() to Inventory. By: sk89q --- .../src/main/java/org/bukkit/inventory/Inventory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/inventory/Inventory.java b/paper-api/src/main/java/org/bukkit/inventory/Inventory.java index 149f8185d..b05acf964 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/Inventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/Inventory.java @@ -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 *