Team-EnderIO / EnderIO

EnderIO Rewritten for Modern Minecraft.
https://enderio.com
The Unlicense
341 stars 108 forks source link

update Almost Unified integration #782

Closed rlnt closed 2 months ago

rlnt commented 2 months ago

This pull request updates the Almost Unified integration to resolve tags to their respective preferred items.

I am currently using an approach with a guarded static class to prevent class loading in case the mod is not present. Previously, this used the EnderIO integration system. But since the integration system is now part of the enderio-base module and the TagUtil method where the integration is required is part of the endercore module, I was not able to use the integration system.

Feel free to adjust this. This PR just serves as a notice of the availability of the mod. It now uses an API artifact that should be safe to compile against in the future as well.

Edit: In the future, it might be a good option if EnderIO expands the integration by defining its own unifiers. That way tags wouldn't need to be resolved to items anymore. It's also a lot more convenient for pack devs but I will discuss this in the contributor channel on Discord when the wiki for that is ready.