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

Posted

Since GameRegistry.registerFuelHandler(handler) is deprecated, how does one use Item.getBurnTime on a block to use the block as a fuel? Also, should this be called in Init, preInit or PostInit?

Create a class that extends ItemBlock and overrides Item#getItemBurnTime and then register an instance of this as the Item form of your Block.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author
28 minutes ago, Choonster said:

Create a class that extends ItemBlock and overrides Item#getItemBurnTime and then register an instance of this as the Item form of your Block.

That works thanks :)

 

39 minutes ago, Alexiy said:

Use FurnaceFuelBurnTimeEvent.

Can't find any documentation on how to use this event.

On 1/11/2018 at 2:25 AM, diesieben07 said:

It's right there on the class and it's called "Javadocs". Get used to using it.

The problem is that the javadocs for Minecraft are almost non-existent, and the ones for Forge are very incomplete and lacking in any examples. Not to mention much of the explanations for the methods are vague and don't offer any insight into what you should do for functionality, once in a while we at least see a "don't do this." 

16 hours ago, KittenKoder said:

The problem is that the javadocs for Minecraft are almost non-existent, and the ones for Forge are very incomplete and lacking in any examples. Not to mention much of the explanations for the methods are vague and don't offer any insight into what you should do for functionality, once in a while we at least see a "don't do this." 

It isn't that bad compared to what was a couple of years ago. Now there is plenty of open source code to look at if you can't find documentation. People contribute to Forge for free, so don't expect it to be professional-grade project.

On 1/13/2018 at 4:03 AM, Alexiy said:

It isn't that bad compared to what was a couple of years ago. Now there is plenty of open source code to look at if you can't find documentation. People contribute to Forge for free, so don't expect it to be professional-grade project.

I was talking about the penchant for some people to just say "read the docs" when what you mentioned is the case. 

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.