Jump to content

[1.12.2]How does one use Item.getBurnTime on a Block


karrablaster123

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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. 

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.