Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

You want to do this stynax?

classA.someMethod() = classB.AnotherMethod();

 

 

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

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...

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...

  • Author

Fine. How would I add a new generation while deleting the old one to the BiomeDecoration.

P.S. Can you show me a way to remove recipes from vanilla?

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...

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.