mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 02:01:44 +01:00
#726: Add Inventory#isEmpty()
This commit is contained in:
parent
13945b7687
commit
e850144b07
1 changed files with 5 additions and 0 deletions
|
@ -248,6 +248,11 @@ public class CraftInventory implements Inventory {
|
|||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return inventory.isEmpty();
|
||||
}
|
||||
|
||||
public int firstPartial(Material material) {
|
||||
Validate.notNull(material, "Material cannot be null");
|
||||
material = CraftLegacy.fromLegacy(material);
|
||||
|
|
Loading…
Reference in a new issue