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:
Ursprung
13945b7687
Commit
e850144b07
@ -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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren