I want to be able to change the max stack size of some custom food items I'm creating to be higher than 64 and change the item use duration. My first thought was to simply extend the class, but the max stack size is hard coded into Item.java and the item use duration is hard coded into ItemFood.java.
I decided I could do without changing the stack size, so I extended Item and copied most of the methods from ItemFood into my new class, and added constructors, plus methods to handle the use duration. When I tested this, the character was able to eat food but the food did not replenish the hunger bar at all. The food item (bacon) I created was previously of type ItemFood and it replenished 2 hunger bars. The eating animation still occurs, so what am I missing?