Add InventoryFillerCommand.gui
All checks were successful
SteamWarCI Build successful

Closes: #27
Fix PistonCalculator movement
This commit is contained in:
2025-07-29 14:52:03 +02:00
parent 7edd72ac27
commit 2daca017c2
5 changed files with 170 additions and 11 deletions

View File

@@ -86,6 +86,10 @@ public class SWInventory implements Listener {
}
}
public boolean hasItem(int pos) {
return inventory.getItem(pos) != null;
}
public void setItem(int pos, SWItem item) {
setItem(pos, item.getItemStack(), item.getCallback());
}

View File

@@ -220,4 +220,9 @@ public class SWItem {
itemStack.setItemMeta(itemMeta);
return this;
}
public SWItem setAmount(int count) {
itemStack.setAmount(count);
return this;
}
}