Recipe Click Areas - mezz/JustEnoughItems GitHub Wiki
[!NOTE] Version note: This page covers recipe click areas for Minecraft 1.12.2.
Other recipe click-area coverage:
- Minecraft 1.16.5, 1.18.2, 1.19.2, and 1.20.1: Creating Your Plugin, Recipes Overview
- Minecraft 1.21, 1.21.1, 1.21.11, 26.1.2, and 26.2: Creating Your Plugin, Recipes Overview
Recipe Click Area
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:
Implementation
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.
Code Example
@JEIPlugin
public class VanillaPlugin implements IModPlugin {
@Override
public void register(IModRegistry registry) {
registry.addRecipeClickArea(GuiCrafting.class, 88, 32, 28, 23, VanillaRecipeCategoryUid.CRAFTING);
}
}