-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add explicit support for BuildCraft, CoFH wrenches #396
Conversation
Warning: 2 uncommitted changes |
1718fcd
to
a6f5686
Compare
I don't understand the issue, ThermalExpansion Crescent Hammer doesn't let me pick up the cable without BC, even before my patch #385 |
Since your code most recently touched wrench code, I assumed it had to do with the issue. Apologies if I offended you. |
We can use And no, I don't feel offended. Everyone makes mistakes 😉 |
I wanted to avoid having to make multiple optional deps. |
Optional dependency > hard dependency when applicable Just a little more work, but it's usually worth in my opinion, def energy draining tho |
we are already talking about optional deps here, just how to implement it 😉 |
It's not hard, |
Don't worry, I am no stranger to optional dep implementation. I meant that I don't necessarily agree with the previous implementation (both yours and mine) now that I've looked closer at how AE2 does integration. To maintain consistency with the rest of the mod - at least until we refactor that part (if we ever want to) - its probabaly better to use these annotations: https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial/blob/master/src/main/java/appeng/transformer/annotations/Integration.java and create a new IntegrationType for CoFHCore/ThermalExpansion (or rather, re-add it since it was removed at some point) |
Isn't |
The problem with checking the modid to decide whether to enable/disable the compat is, that the APIs can (and often are) shaded in other mods. "CoolWrenchMod" might shade both the BC API and the CoFH API and expect the Interaction with AE to work, even though neither BuildCraft or CoFHCore are present. IIRC FML provides a method to check if an API is loaded, so maybe it is possible to use that. |
Just checked, it is |
AE2 |
@miozune implemented. lmk if it looks better |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PartP2PTunnelStatic
still references raw IToolWrench
45d4a91
to
d862d50
Compare
Uses AE2's integration system to add support for Thermal Expansion wrenches
ToolQuartzWrench
andToolNetworkTool
, move BC optional interfaceIToolWrench
toIAEWrench
IToolHammer
toIAEWrench
Fixes #395