Jump to content

Make net.minecraft.block.BlockRailBase implementing an interface


rapus95

Recommended Posts

Hello,

i'd like it if you (or I/me -> continue reading) could replace all that instanceOf checks of minecart regarding BlockRailBase by an instanceOf check to an interface that could be extracted from the class.

Reason for that is that it would be nice if you could create a new rail block that doesn't have to extend BlockRailBase but indeed alows spawning of minecarts on it.

 

If you can give me an easy link to "how to contribute to mcforge" (setup etc) i'd be grateful and if it's ok i'd change that myself since it's not that hard extracting an interface from a class using eclipse ;)

 

Aaron

 

P.S. sry for my English x) ; even though i think you can understand everything well ;)

Link to comment
Share on other sites

Eclipse has tools for extracting interfaces yes, but that would not work in Forge because of the obfuscation we have to deal with.

As it sits, the best choice is to assume all rails are BlockRailBase's.

What exactly are you trying to do that you can't follow this design and would be worth the dozen patches that it would take to change this?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Hey,

 

btw i'm 1 of the PowerCraft modders (powercraft was a very huge mod but since both of the modders had their final exams in school it is fairly out of date :/)

 

regarding the interface:

we wanted to create a rail switch that is controlled by miniscript and can be controlled by weasel (both are kinda like script languages) that and some other things require us to extend another class of our mod.

 

if we find any solution that takes into account that vanilla minecraft not even knows that interface, will you think about making it a part of forge?

 

sorry for being that inconvenient but do you have skype (aaronrm0708 or Aaron R. Matthis/Germany) or google talk([email protected])?

Ofc i won't waste your time asking whether that is a solution you would accept to make the interface a port of minecraft!!

I like it if you add me and if i'm too inconvenient you still can block me. so there is no risc for you :)

pls O.o

Sincerely Aaron aka rapus95

Link to comment
Share on other sites

I don't talk to people I don't know on those systems for various reasons.

However, I don't see how what you would want to do would REQUIRE you to extend a separate block.

Maybe a refactor of the functionality in your mod to better suit your expansion ideas is in order?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.