Brilliant find, that will definitely be useful! Definitely a relief after scouring through the class to see what needed to be done. The catch is that I will need to extend a dynamically loaded reflection class, so it's not something I can just copy/paste. If I have an interface, I can dynamically implement it using the Proxy API; I did so for the chunkloader already.
But EntityPlayerMP doesn't have an interface to implement, so I can't do it with proxies. Apparently, I'll have to use CGLIB to generate the java byecode that extends EntityPlayer. Looking forward to using that. And that's great, because it will work for any right clicking, so it may be possible to open item containers as well, for example.
That's for right clicking stuff. For rotating it, I'll just cycle through possible orientations and check if a torch pops off until a valid orientation is found.
But EntityPlayerMP doesn't have an interface to implement, so I can't do it with proxies. Apparently, I'll have to use CGLIB to generate the java byecode that extends EntityPlayer. Looking forward to using that. And that's great, because it will work for any right clicking, so it may be possible to open item containers as well, for example.
That's for right clicking stuff. For rotating it, I'll just cycle through possible orientations and check if a torch pops off until a valid orientation is found.