summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-19 14:23:24 +1000
committermd_5 <git@md-5.net>2018-08-19 14:23:24 +1000
commitfd6a980affe4ec8ba565e0866e6106ab051f97fd (patch)
treeeddd3d7aaf85bd0d632cbfaf68b5917fef1c8786 /src
parentf7662d5c9249b90936349d3da43bb0bab089e59e (diff)
downloadbukkit-fd6a980affe4ec8ba565e0866e6106ab051f97fd.tar
bukkit-fd6a980affe4ec8ba565e0866e6106ab051f97fd.tar.gz
bukkit-fd6a980affe4ec8ba565e0866e6106ab051f97fd.tar.lz
bukkit-fd6a980affe4ec8ba565e0866e6106ab051f97fd.tar.xz
bukkit-fd6a980affe4ec8ba565e0866e6106ab051f97fd.zip
Fix PlayerInventory.setItem docs
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/inventory/PlayerInventory.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/inventory/PlayerInventory.java b/src/main/java/org/bukkit/inventory/PlayerInventory.java
index 5d75bd49..fc5772e8 100644
--- a/src/main/java/org/bukkit/inventory/PlayerInventory.java
+++ b/src/main/java/org/bukkit/inventory/PlayerInventory.java
@@ -63,16 +63,20 @@ public interface PlayerInventory extends Inventory {
* Indexes 36 through 39 refer to the armor slots. Though you can set armor with this method using these indexes,
* you are encouraged to use the provided methods for those slots.
* <p>
- * If you attempt to use this method with an index less than 0 or greater than 39, an ArrayIndexOutOfBounds
+ * Index 40 refers to the off hand (shield) item slot. Though you can set off hand with this method using this index,
+ * you are encouraged to use the provided method for this slot.
+ * <p>
+ * If you attempt to use this method with an index less than 0 or greater than 40, an ArrayIndexOutOfBounds
* exception will be thrown.
*
* @param index The index where to put the ItemStack
* @param item The ItemStack to set
- * @throws ArrayIndexOutOfBoundsException when index &lt; 0 || index &gt; 39
+ * @throws ArrayIndexOutOfBoundsException when index &lt; 0 || index &gt; 40
* @see #setBoots(ItemStack)
* @see #setChestplate(ItemStack)
* @see #setHelmet(ItemStack)
* @see #setLeggings(ItemStack)
+ * @see #setItemInOffHand(ItemStack)
*/
@Override
public void setItem(int index, ItemStack item);