inventory_mock tests #17

Merged
erns6604 merged 16 commits from inventory_mocks into main 2025-10-30 07:52:55 +01:00
Showing only changes of commit e98d99598d - Show all commits

View File

@@ -54,21 +54,4 @@ public class Inventory {
}
return currentWeight;
}
private int calculateStackWeight(ItemStack stack) {
return stack.getItem().getWeight() * stack.getQuantity();
}
public boolean containsItem(Item item) {
for (ItemStack stack : items) {
if (stack.item().equals(item)) {
return true;
}
}
return false;
}
public int getMaxWeight() {
return maxWeight;
}
}