mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Added setContents() to Inventory.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
650e0749d1
commit
ea2c6665c0
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue