public void spendMeat(StoreItem item) { if (meatCount >= item.getCost()) { if (item.onBuy()) { meatCount -= item.getCost(); } } }