Architectury Plugin
Architectury Plugin is a Gradle plugin to allow easier multi-modloader set-ups using a common module.
Things to know
Same Limitations as Architectury Loom
Read Me for things to know on using Architectury Loom.
Unstable + Issues
Architectury Plugin is an experimental project, issues may arise, make sure you report them to the issue tracker.
Gradle Version Support
Architectury Plugin supports Gradle 5.5.1 and up, with support for future versions of Gradl.
Things that are transformed
@EnvironmentandEnvTypeare remapped to@OnlyInandDist@ExpectPlatformwill be transformed to their platform-specific implementations (Read More)- A fake forge mod will be generated for dev testing to make forge treat the common module as a mod
- Classes annotated with
@ForgeEventor@ForgeEventCancellablewill extend forge’sEventclass on forge.
Access Transformer / Access Widener
You must have an identical AT and AW for the common module, the fabric module and the forge module, currently, there is no easy way to translate between ATs and AW, you just have to translate them manually, or use mixin @Invoker and @Accessor.
Do not use vanilla Registry class for registering
Forge disallows registering to the vanilla Registry class, you must defer your registrations to the RegistryEvent.Add.
Architectury API provides an abstraction for ForgeRegistries and vanilla’s Registry for registering content. (Read More)