#726: Add Inventory#isEmpty()
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
@@ -248,6 +248,11 @@ public class CraftInventory implements Inventory {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isEmpty() {
|
||||||
|
return inventory.isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
public int firstPartial(Material material) {
|
public int firstPartial(Material material) {
|
||||||
Validate.notNull(material, "Material cannot be null");
|
Validate.notNull(material, "Material cannot be null");
|
||||||
material = CraftLegacy.fromLegacy(material);
|
material = CraftLegacy.fromLegacy(material);
|
||||||
|
|||||||
Reference in New Issue
Block a user