mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 18:50:51 +01:00
Added setArmorContents as a method for PlayerInventory.
By: Raphfrk <raphfrk@gmail.com>
This commit is contained in:
parent
2fc8673c04
commit
894465d3b7
1 changed files with 8 additions and 1 deletions
|
@ -39,6 +39,13 @@ public interface PlayerInventory extends Inventory {
|
||||||
*/
|
*/
|
||||||
public ItemStack getBoots();
|
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
|
* Put the given ItemStack into the helmet slot
|
||||||
* This does not check if the ItemStack is a helmet
|
* This does not check if the ItemStack is a helmet
|
||||||
|
@ -91,4 +98,4 @@ public interface PlayerInventory extends Inventory {
|
||||||
* @return Held item slot number
|
* @return Held item slot number
|
||||||
*/
|
*/
|
||||||
public int getHeldItemSlot();
|
public int getHeldItemSlot();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue