3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-15 12:30:06 +01:00

#726: Add Inventory#isEmpty()

Dieser Commit ist enthalten in:
Parker Hawke 2020-08-16 11:21:08 +10:00 committet von md_5
Ursprung 13945b7687
Commit e850144b07
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11

Datei anzeigen

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