Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +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