mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
#726: Add Inventory#isEmpty()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
a58824a3d9
commit
56d055fb45
@ -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 New Issue
Block a user