emilyploszaj / trinkets

A data-driven accessory mod and API for Minecraft using Fabric.
https://www.curseforge.com/minecraft/mc-mods/trinkets
MIT License
165 stars 72 forks source link

Add REI and EMI exclusion areas for compatibility #295

Closed TheIllusiveC4 closed 6 months ago

TheIllusiveC4 commented 6 months ago

Addresses https://github.com/emilyploszaj/trinkets/issues/272.

Currently, there is an issue where Trinket slots may block or overlap elements of REI/EMI resulting in unintended interactions. This PR adds exclusion areas for REI and EMI compatibility using their respective plugin APIs, which allows for elements of those recipe viewers to shift out of the way of Trinket slots when appropriate. This has been tested in both Survival and Creative inventory screens.

JEI compatibility was also attempted, and would be trivial to add, but I could not figure a resolution to the mapping issue that occurs when using a Mojmap dependency in a Yarn environment.

Cloth Config is part of the compile dependencies due to it packaging the Rectangle class needed for REI exclusion areas.