Jump to content

Recommended Posts

Posted
13 minutes ago, jabelar said:

After the mods are loaded you can get a list of all the recipes from the various registries and then loop through them to see if you find a recipe whose output matches what you're looking for.

Is it okay to do the lookup after the whole initialization phase. For example on events such as when player interacts with a block, it will loop through all the recipes to see the matching output?

Posted

For performance reasons you need to be weary of when you do this as there are thousands, perhaps hundreds of thousands of recipes. So searching it takes some time. So do it as rarely as you can, and cache the results.

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

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.