Jump to content

Changing a method


DarkNinja2462

Recommended Posts

You know methods are functions and not variables inn Java? I'm pretty sure you can't assign the a method to another one...

 

However you could replace a function with another one, or make the first function call the second function etc.

I guess that's what you actually want to do. Again as replied earlier if you want your mod to be compatible with other mods, don't edit base classes use reflection or other ways to achieve what you want to :)

 

And as stated earlier, depending on what you are trying to do by wanting to edit base classes, there might be easier workaround for whatever you want to do :)

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

ah I see, well I'm not sure about any smart ways to do that. But didn't you already create your own stem and such? Since the code only generates normal pumpkins and not stems after all?

 

If you want to generate some stems and pumpkins you could create your own generation code and make it run in addition to the vanilla one?

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

I feel that I'm quite far away from my comfort zone, I haven't tried anything like it so I'd rather wait and see if some of the pro's inn here has the time to read and reply to this :) I'm sure there are some cleverer solutions to this than we'd come up with so far :) Meanwhile I guess one could read how the BiomeDecoration works and figure out how the pumpkin generation is called along with a events and such that is sent out, maybe it could bring some answers :)

If you guys dont get it.. then well ya.. try harder...

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.