JEI & EMI
Galdur UI works with JEI and EMI out of the box: their item list avoids your panels, and item grids show recipes with R and U.
Optional, not bundled
The integrations are compiled against the JEI and EMI APIs, but not bundled in the jar, and never loaded when the matching mod is not installed. Your mod needs no dependency on either.
What you get
- Exclusion zones: the item list avoids the panel of a
GaldurContainerScreen, plus the areas returned by itsgetExclusionZones(). - Recipes from a grid: hovering an item of a
GaldurItemGridand pressing R (recipes) or U (uses) shows them.
JEI and EMI are only active on menu screens (GaldurContainerScreen). They do nothing on plain screens such as a GaldurWindow or /galdurui test.
Buttons outside the panel
If your screen adds a side tab or a button that sticks out of the panel, return its area so the item list keeps it clear:
@Overridepublic List<Rect2i> getExclusionZones() { return List.of(new Rect2i(leftPos + imageWidth, topPos + 4, 22, 22));}Coordinates are screen coordinates.
Try it
In a development run, /galduruidev terminal opens a grid of every item; hover one and press R or U. The tested versions are in the gradle.properties of Galdur UI (jei_version, emi_version).