mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#540: Add Inventory#isEmpty()
This commit is contained in:
parent
c45e2fafdd
commit
bf0015ebb3
1 changed files with 8 additions and 0 deletions
|
@ -288,6 +288,14 @@ public interface Inventory extends Iterable<ItemStack> {
|
|||
*/
|
||||
public int firstEmpty();
|
||||
|
||||
/**
|
||||
* Check whether or not this inventory is empty. An inventory is considered
|
||||
* to be empty if there are no ItemStacks in any slot of this inventory.
|
||||
*
|
||||
* @return true if empty, false otherwise
|
||||
*/
|
||||
public boolean isEmpty();
|
||||
|
||||
/**
|
||||
* Removes all stacks in the inventory matching the given material.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue