From 894465d3b75a52527a0325151eaddd64938244de Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 29 Apr 2011 00:28:13 +0100 Subject: [PATCH] Added setArmorContents as a method for PlayerInventory. By: Raphfrk --- .../main/java/org/bukkit/inventory/PlayerInventory.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java b/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java index 73f2046347..34b3ee3f6d 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/PlayerInventory.java @@ -39,6 +39,13 @@ public interface PlayerInventory extends Inventory { */ public ItemStack getBoots(); + /** + * Put the given ItemStacks into the armor slots + * + * @param items The ItemStacks to use as armour + */ + public void setArmorContents(ItemStack[] items); + /** * Put the given ItemStack into the helmet slot * This does not check if the ItemStack is a helmet @@ -91,4 +98,4 @@ public interface PlayerInventory extends Inventory { * @return Held item slot number */ public int getHeldItemSlot(); -} \ No newline at end of file +}