[Suggestion] Addtional getter methods in IFlexibleRecipe
Tonius opened this issue ยท 3 comments
It would be nice to have some additional getter methods in IFlexibleRecipe, so that NEI handlers can read them. Currently it is not possible for an NEI handler to read the lists of recipes and determine the various kinds of information that needs to be displayed.
The needed methods would be getters for:
- Input ItemStacks/FluidStacks (or lists of Objects for assembly table inputs)
- Output ItemStacks/FluidStacks
- Required energy
- 'Delay' (in refinery recipes)
Alternatively, IFlexibleRecipe could get some subclasses in the API for Refinery recipes, Assembly Table recipes and possibly Integration Table recipes, each with the relevant getters for the mentioned info.
@Tonius - I do not think the subclasses are required. IFlexibleRecipe was designed specifically to fit almost any kind of recipe into them.
Anyway, working on this...
@Tonius - Does this work?