Jump to content

Recommended Posts

Posted

The Idea with copying the recipe worked!

 

@larsgerrits and others:

Make a new class "extends ShapedRecipies".

Add a constructor (eclipse should create a template)

Override the method "matches". There, the method checkMatch is called two times, once with the last parameter true, once false. Delete the call with the last parameter set to true, cause this is the mirrored check.

Finished!

 

To set up your recipe, you can copy the methods from the craftingManager to create recipies from three strings and a Object list. Copy it into your class into a method maybe named "create" which returns a recipe (the class you made)

Edit the code, that it returns a new object of this recipeclass and you're finished!

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.