#726: Add Inventory#isEmpty()

This commit is contained in:
Parker Hawke 2020-08-16 11:21:08 +10:00 committed by md_5
parent 13945b7687
commit e850144b07
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -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);