-
Notifications
You must be signed in to change notification settings - Fork 310
Recipe Click Areas
mezz edited this page Dec 21, 2017
·
3 revisions
Recipe Click Areas are invisible areas on your GUIs that link to recipe categories in JEI.
For example, clicking the arrow on a crafting table opens up all the Crafting recipes in JEI:
After you create a plugin, you are passed the IModRegistry
in your plugin's register
method.
From there, add your recipe click area with modRegistry.addRecipeClickArea
.
@JEIPlugin
public class VanillaPlugin implements IModPlugin {
@Override
public void register(IModRegistry registry) {
registry.addRecipeClickArea(GuiCrafting.class, 88, 32, 28, 23, VanillaRecipeCategoryUid.CRAFTING);
}
}
- Setup
- Item Ingredients
- Essential Extras
- Advanced
List of Plugin Implementations
- Setup
- Item Ingredients
- Working with Recipes
- Other