mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Fix PlayerInventory.setItem docs
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9d24d601e2
commit
591b960420
@ -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 < 0 || index > 39
|
||||
* @throws ArrayIndexOutOfBoundsException when index < 0 || index > 40
|
||||
* @see #setBoots(ItemStack)
|
||||
* @see #setChestplate(ItemStack)
|
||||
* @see #setHelmet(ItemStack)
|
||||
* @see #setLeggings(ItemStack)
|
||||
* @see #setItemInOffHand(ItemStack)
|
||||
*/
|
||||
@Override
|
||||
public void setItem(int index, ItemStack item);
|
||||
|
Loading…
Reference in New Issue
Block a user