public bool hasItem(Item item, int amount = 1) { int count = slots.getItemCount(item); return(count >= amount); }