architectury-loom
architectury-loom copied to clipboard
Interface injections defined in common project should also applies to platform project.
I have interface injections defined in the common project's fabric.mod.json, loom did apply it to the mc jar for that project as intended. However, it didn't apply the same injections for the platform projects(fabric and forge). It would be great if it can be done automatically, so it is also possible to use the interface methods in the platform projects.
Loom version: 1.0.304 (latest)
This is more of an upstream issue (applying IIs from other Gradle projects in the same build), I don't know if Fabric has planned support for this.
The project layout handling (common+fabric+forge) isn't actually part of Loom but Architectury Plugin, but even there the layout is actually mostly declared using dependencies instead of some proper structure that could automatically discover the interfaces and other stuff like AWs.
I believe Loom 1.1 has support for this:
Jar processor inputs such as interface injection or access wideners are now also read from project dependencies.