Architectury API
Architecture API is an intermediate development layer designed to simplify the creation of cross-platform Minecraft mods. This library provides a unified interface for working with various mod loading platforms, including Fabric and Forge.
What is Architectury API
This API serves as an intermediary layer between your code and specific implementations of different loaders. When Fabric and Forge offer different approaches to performing the same tasks, Architectury provides a universal interface for their execution.
The library is constantly evolving and being updated. Currently, it includes over 90 ready-to-use event hooks, unified networking systems, loader abstractions and game registry, as well as the convenient @ExpectPlatform annotation (works only with static methods).
Why do I need this API
Architectury API is only one part of the development ecosystem. The main tool is Architectury Plugin — a gradle plugin that provides all cross-platform functionality.
It's important to note that Architectury API can be added as an additional component even if your project is already created using Architectury Plugin.
Benefits of using Architectury
- Open source
- Significant reduction of boilerplate code in multi-platform mods