Skip to content
mezz edited this page Dec 21, 2017 · 3 revisions

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);
	}
}
Clone this wiki locally