architectury-loom icon indicating copy to clipboard operation
architectury-loom copied to clipboard

Interface injections defined in common project should also applies to platform project.

Open Luna5ama opened this issue 2 years ago • 2 comments

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) image

Luna5ama avatar Dec 12 '22 08:12 Luna5ama

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.

Juuxel avatar Dec 12 '22 15:12 Juuxel

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.

Juuxel avatar Feb 19 '23 01:02 Juuxel