-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help everyone out #224
Help everyone out #224
Conversation
- Make a lot of the constant methods for AEBaseBlock public so other mods can easily edit them
and why would you want to overwrite these methods? final methods are generally intended in these cases cause the base class handles that. |
I'm trying to override the sky chest class to create a hungry version of it for Magistics, but run into some problems based on how AE2 sets everything up. I have to use the "createTileEntity" method in place of the default, and get errors since AE2 doesn't recognize the feature. |
missread use |
Now I'm getting a duplicate ID error w/ BlockSkyChest. How do I properly set an ID? |
I'm not entirely comfortable with opening these methods up in the core classes? What do you gain from this that you can't do with the API? |
Please dont tell me you |
So basically no other mod can expand off of what is in AE2 then, correct? At least not w/out making an entirely custom implementation. |
Ok, the problem is, that if we change anything in our base code any mod would break if they do that. |
Not necessarily, since all I really need to do this correctly is set an ID properly. If you make something like that, then other people will be able to do what I'm doing w/out breaking anything. There are a lot ways you can approach this w/out breaking anything. |
@thatsIch It's the mod author's decision to risk that |
Ok, again. Since we did the rename but it does not affect us in any way and we did not change the API it is not supposed to break other addons. End of argument, what you doing is bad. |
@iloveportalz0r if its the mod authors decision to risk that, then they can use ASM and reflection to open the methods up. We set it final because we dont want people to override these methods, cause this will mess up the internal logic and behavior. Other than that, he still can extend the class and do what ever he wants with it. |
Ok, so you're saying that what I'm doing is bad yet I can still do it somehow? How am I supposed to accomplish what I want to then? Should I just go ahead and make an entirely separate, ordinary chest? |
did you try using the |
Yes, but then that's when I got that ID error, as stated previously. |
Maybe more detailed error log? |
Also next time come into IRC, such chats are not meant for GitHub |
Where's the IRC? And also, why would GitHub have this feature anyway? You should see the discussions for node.js and Ruby on Rails!
|
Because this is not a discussion anymore but a help thread. And using that is unresponsive. |
How do you register your Block? You basically have to use |
That's what I always use to register my blocks, and I registered it w/ the block name "sky_hungry_chest". |
After digging deeper it seems AE2 is using so-called feature to determine everything, for you, you need to overwrite |
That would be great if I could. The function is protected, so I cannot access it from my constructor. |
🌴