So the way recipes work, as I understand it, is that when you place the components in the grid, it's checked against the Crafting Manager looking for matches in item types and layouts. I'm implementing a method of crafting that doesn't hinge on the 3x3, or any layout, crafting grid at all, just the raw components themselves.
For vanilla recipes it works just fine, all IRecipes in the game (Shaped/Shapeless/Ore etc) have an array of all the item types and respective alternatives (such as for the ore dictionary recipes) so I can just go through and translate them all based on the case. However, this doesn't come as part of the interface, there is no way to be plainly given what's in the recipe. The only thing the interface offers is a way to check if it matches what is provided.
So this leaves me with the problem I've run into: What way is there to universally access all the components of a crafting recipe across all the custom handlers? I'm starting to get the feeling there isn't. Which is inconvenient. Any thoughts?
I've posted this to the Forge forums as well just for visibility.
This is what I came up with. Used a slightly modified version of cpw's reflection method.