Architectury API

Architectury API - Minecraft Mod

What is Architectury API?

The Architectury API abstracts the calls to Fabric API and Forge API, to resolve the differences in how these loaders implement features which may appear identical. The API is a living thing and is constantly updated - new hooks and features are being added. So far over 90 event hooks, network abstraction, loader call abstraction, game registry abstraction and an easy-to-use @ExpectPlatform annotation which currently can be applied to static methods only.

Is the API Necessary?

While Architectury API is a part of the greater Architectury ecosystem, the core tool that really makes the multi-platform capability work is the Architectury Plugin. Not all projects using Architectury require the API; a project can be made using just the Architectury Plugin.

Benefits of Architectury

  • Open-source and freely available
  • Reduces boilerplate code for multiplatform mods
  • Simplifies the process of starting multiplatform mod development

Resources for Multiplatform Development

  • Architectury Loom: A Fabric Loom derivative, providing extended multiplatform capabilities.
  • Gradle Plugin: Implements Architectury Injectables for @ExpectPlatform annotation.
  • Example Mod: A discontinued sample mod showcasing the use of Architectury. For up-to-date examples, templates are preferred.
  • Mod Templates: A set of templates to get started quickly using the Architectury toolchain.

Compatibility and Supported Platforms

Minecraft Versions Supported:

  • 1.21.x
  • 1.20.4-1.20.6
  • 1.20-1.20.2
  • 1.19.x
  • 1.18.x
  • 1.17.1
  • 1.16.5

Platforms:

  • Fabric
  • Forge
  • NeoForge
  • Quilt

Supported Environments:

  • Client-side
  • Server-side
  • Client and server