[ENH] Baby APIs
Wabbit0101 opened this issue ยท 2 comments
Just some thoughts regarding support of more complex ItemFood implementations:
- an interface (or IMC registration) something like 'getTotalFoodValues' (defaults to getFoodValues for ItemFood/IEdible) so multi-use or other non-standard items can report the correct values to the station
- an interface to support condiments that aren't edible standalone (not an ItemFood) but enrich the target sandwich/food/soup(I've read the comments regarding generalization of the cooking center for 1.13! woohoo!). Sortof like Applecore's IEdible but supports 0 for food value. Might also be just a "passthrough" of a custom string tag for the source ingredient so it can be detected by the source mod's event handler (eg for potion effects, curatives, etc.). I know you're calling the ingredient's onFoodEaten method but that doesn't work for things that override onItemUseFinish instead.
- a config to increase the max food values allowed per sandwich
Really nice mod!
The first and third suggestions should be simple enough to implement.
As for the second suggestion, do you have a concrete example in mind for something that could use such an interface? I understand the general idea, but I could use a little more explanation about the details.