Recipe Handlers
Note
Version note: This page covers recipe handlers for Minecraft 1.12.2.
For newer README-listed versions, recipe handler work moved into recipe registration and category APIs:
- Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1: Recipes Overview, Recipe Categories
- Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Recipes Overview, Recipe Categories
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.