Add support for AppleCore
Problem description:
When eating an item using AppleCore, especially Spice Of Life, the data for special food consumption is stored in the item itself. It should therefore be necessary to rework the TEEdible to support the item itself, and not an artificial eaten variable.
This also means that the effects of the item itself should be applied automatically instead of hardcoded like it is right now.
Getting rid of the eaten variable also means that the problem where you can eat half the food, then relog then eat the other half would be fixed.
Has this been resolved?
if (player.canEat(food.canEatWhenFull()) || player.isCreative()) {
itemStack.onItemUseFinish(worldIn, player);
player.onFoodEaten(worldIn, itemStack);
The above in EdibleBlockComponent seems to indicate that it should support any modded foods. Additionally, eaten no longer exists (or the edible tile entity for that matter)
It's possible it's already been fixed by the rewrite. Just like #42 we just need to confirm these changes did in fact fix these issues