I'm trying to add Macerator recipes through reflection, so that I don't have to include parts of the ever-changing IC2 API in my mod, which is not an IC2 dependency.
However, the weird way that IMachineRecipeManager is set up is making this difficult. That "V" variable thingy means that I'm getting NullPointerExceptions upon trying to getMethod("addRecipe", ItemStack.class, ItemStack.class). And I don't know how else to do this.
How do I fix this? Is it even possible anymore? Do I absolutely have to include that part of the API in my download and directly reference it? It's not terrible if I do, because the classes I'd be including are so small that any change would be likely to break it anyway, but I want to keep it as clean from external code as possible.