Minecraft.How
加载中...
跳至内容
Java 版模组Libraries & APIs

Architectury API

作者 shedaniel

Architectury API is an open source library by shedaniel for Fabric and Neoforge. It provides cross-loader abstractions and event hooks to cut boilerplate in multiplatform Minecraft mods.

我们的介绍

这个项目能做什么

What the library does

Architectury API is an open source library written by shedaniel. It provides an abstraction layer between different mod loaders.

If you build mods for both Fabric and Forge or Neoforge, you know that each loader handles similar tasks differently. This library wraps those loader specific calls into shared interfaces. You write your logic once against common abstractions instead of maintaining separate hooks for each platform. That cuts down boilerplate code across your codebase.

The library is open source under the GNU Lesser General Public License v3.0 only.

Features for developers

Architectury API gives mod creators shared systems across multiple areas of mod development.

It includes over 90 event hooks that let your code react to in-game actions across platforms. It also supplies abstractions for game registries, networking, and direct loader calls.

For platform specific code, the library includes the @ExpectPlatform annotation. This annotation only works on static methods. It lets you define a single method signature in shared code while calling loader specific implementations at runtime.

The project receives regular updates with added hooks and capabilities.

Ecosystem tools and usage

Architectury API is one piece of a broader tooling ecosystem. It works alongside Architectury Plugin, which is a Gradle plugin that handles multiplatform build actions.

Using this runtime API is optional even if you develop on the Architectury toolchain. Honestly, you can set up a project using only Architectury Plugin if your mod doesn't need the shared runtime helper methods.

The ecosystem also provides related developer resources:

Architectury Loom is a fork of Fabric Loom that adds multiplatform development support.

Architectury Plugin includes Architectury Injectables for processing the @ExpectPlatform annotation.

Mod Templates give developers starting project templates for the Architectury toolchain. The older Architectury Example Mod repository is discontinued, so template repositories are recommended instead.

In certain older releases, the library bundled typetools.

Compatibility and requirements

Architectury API is listed for Minecraft versions 26.3, 26.2, and 26.1.2.

Supported mod loaders in the project record are Fabric and Neoforge.

Both client and server environments require the mod when it is included in an installation.

反应

登录后即可做出反应。

兼容性

版本与加载器

已记录 26 个版本

22.0.2+neoforge

release

下载 (608 KB)

22.0.2+fabric

release

下载 (608 KB)

21.1.10+neoforge

release

下载 (607 KB)

21.1.10+fabric

release

下载 (609 KB)

20.1.15+fabric

release

下载 (608 KB)

20.1.15+neoforge

release

下载 (604 KB)

22.0.1+fabric

release

下载 (608 KB)

22.0.1+neoforge

release

下载 (608 KB)
显示全部 26 个版本

21.1.9+neoforge

release

下载 (607 KB)

21.1.9+fabric

release

下载 (609 KB)

20.1.14+fabric

release

下载 (608 KB)

20.1.14+neoforge

release

下载 (604 KB)

21.1.8+neoforge

release

下载 (606 KB)

21.1.8+fabric

release

下载 (608 KB)

20.1.13+neoforge

release

下载 (603 KB)

20.1.13+fabric

release

下载 (606 KB)

21.0.7+fabric

release

下载 (573 KB)

21.0.7+neoforge

release

下载 (568 KB)

20.0.12+fabric

release

下载 (572 KB)

20.0.12+neoforge

release

下载 (565 KB)

21.0.6+neoforge

release

下载 (568 KB)

21.0.6+fabric

release

下载 (573 KB)

20.0.10+fabric

release

下载 (572 KB)

20.0.10+neoforge

release

下载 (564 KB)

13.0.11+neoforge

release

没有记录到文件

13.0.11+fabric

release

没有记录到文件

图库

Architectury API icon

我们使用 Cookie 来改善您的体验。继续使用本网站即表示您同意我们使用 Cookie。 阅读我们的隐私政策