-
Notifications
You must be signed in to change notification settings - Fork 314
Recipe Handlers
James Mitchell edited this page Feb 11, 2017
·
6 revisions
A recipe handler is the glue that lets JEI understand one recipe class.
- Tell JEI about one specific recipe class.
- The recipe's class. (example:
ShapedOreRecipe.class
) - The recipe's Recipe Category.
- Wrap recipes of that class into recipe wrappers.
- Validate recipes at runtime to make sure they should be shown to the player.
None
This class is short and almost pure boilerplate. Just fill in the blanks with the right information for your recipe in order to connect it with the corresponding Recipe Wrapper and Recipe Category.
When checking if the recipe is valid, it's good practice to log errors you find. That way if a recipe is "missing" because it was invalid, there is at least a reason in the log that can be useful for debugging later.
See IRecipeHandler
.
- Setup
- Item Ingredients
- Essential Extras
- Advanced
List of Plugin Implementations
- Setup
- Item Ingredients
- Working with Recipes
- Other