Jump to content

Recommended Posts

Posted

Obviously RecipeSorter sorts recipes. Why do recipes need to be sorted, and why do they need to be sorted in such a complex way? (as opposed to, say, alphabetically by class name and then by output item ID)

Posted

Hi

 

Out of curiosity I had a look.

 

It appears that the recipes are sorted in such a way to make sure that the most specific recipes gets matched first.  Shaped before Shapeless, for example.

 

The sorting algorithm is interesting, I suspect cpw wrote it like that because he wanted to try out a topological sorting algorithm for the fun of it :)

 

-TGG

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.