Architectury Plugin is a Gradle plugin to allow easier multi-modloader set-ups using a common module.
Same Limitations as Architectury Loom Read Me for things to know on using Architectury Loom.
Architectury Plugin is an experimental project, issues may arise, make sure you report them to the issue tracker.
Architectury Plugin supports Gradle 5.5.1 and up, with support for future versions of Gradle.
@Environment
and EnvType
are remapped to @OnlyIn
and Dist
.
@ExpectPlatform
will 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 @ForgeEvent
or @ForgeEventCancellable
will extend forge's Event class on forge.
You can have an identical AT and AW for the common module, the fabric module and the forge module, or translate between ATs and AWs, or use mixin @Invoker
and @Accessor
.
Forge disallows registering to the vanilla Registry class, you must defer your registrations to the RegistryEvent.Add.
Additionally, Architectury API provides an abstraction for ForgeRegistries and vanilla's Registry for registering content.