Posted October 30, 201410 yr Hi, I want to make use of TE's existing recipe handler for items that can be pulverized but I can't find any reference to it in the api except for the functions to send recipes to TE through intermodcomms. Does anybody know if I can get these recipes? Thanks!
October 30, 201410 yr You can access them via Reflection, you'd have to decompile the mod though to figure out what you need to reflect into. I like trains.
October 30, 201410 yr Author Alright thanks. I was hoping I wasn't going to need to decompile, but oh well, thanks for your help.
October 30, 201410 yr Author I hate to reply to this again, but I've been running into a few issues trying to get this to work. I can't for the life of me seem to figure out how to use Reflection to do this. Thermal Expansion has a class called PulverizerManager and I have no issue getting at that and running its methods, my issue is that there's a subclass of PulverizerManager called RecipePulverizer and I have to use that as the type of a variable during my pulverization function. I just can't seem to figure out how to do that!
October 31, 201410 yr Author I think you misunderstand my purpose, I'm not trying to add more pulverizer recipes to the TE pulverizer, I'm trying to make a machine that ACCESSES the list of pulverizer recipes, there is no getPulverizerRecipe() in that class.
November 1, 201410 yr Oops! Sorry about that. ThermalExpansion has a dev build which will give you the method stubs when put into your dev environment. This is what IntelliJ says for me. The RecipePulverizer subclass is at the bottom.
November 1, 201410 yr Author I could have sworn that I tried doing that in the past, but I tried it again and it starting working right away.. huh.. Well thanks so much, I appreciate it, it's nice to know I don't have to go through some frustrating Reflection crap like I thought I might.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.