关于 Architectury API 模组
Talk to us on Discord!
An intermediary api aimed to ease developing multiplatform mods.
What is Architectury API
Architectury API is an api to abstract calls to fabric api and forge api as both loader has different implementations of what can be perceived as the same thing.
Architectury API updates regularly, with new hooks and features. Currently contains over 90 events hooks, networking abstraction, loader calls abstraction, game registry abstraction and an easy to use @ExpectPlatform annotation (Only works on static methods).
Do I really need this API?
Architectury API is only one part of the architectury ecosystem, Architectury Plugin is the gradle plugin enabling all this multiplatform actions.
Architectury API is optional for projects built on architectury, you may create your architectury project with just Architectury Plugin.
Advantages of Architectury
- Open sourced
- Less boilerplate for your multiplatform mod
Getting started with making multiplatform mods
Architectury Loom: https://github.com/architectury/architectury-loom (a fork of Fabric Loom adding multiplatform development capabilities)
Gradle Plugin: https://github.com/architectury/architectury-plugin (includes Architectury Injectables, for the @ExpectPlatform annotation)
Example Mod: https://github.com/architectury/architectury-example-mod (a discontinued example mod using Architectury, if possible, use the templates instead)
Mod Templates: https://github.com/architectury/architectury-templates (a set of templates to get started using the Architectury toolchain)
Example: Usage of @ExpectPlatform
Credits
In certain older versions, this library used to bundle typetools; you can find its license here
如何安装 Architectury API
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.16–26.3 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file architectury-fabric-22.0.5.jar (608 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: Architectury API should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 26.3 | Fabric | 26.3608 KB 170 | ||
| 26.3 | NeoForge | 26.3608 KB 15 | ||
| 26.2 | Fabric | 26.2610 KB 66 | ||
| 26.2 | NeoForge | 26.2607 KB 1 | ||
| 26.1.2 | NeoForge | 26.1.2604 KB 1 | ||
| 26.1.2 | Fabric | 26.1.2608 KB 24 | ||
| 26.3 | NeoForge | 26.3608 KB 1 | ||
| 26.3 | Fabric | 26.3608 KB 20 |
运行所需
常见问题
Which Minecraft versions does Architectury API work on?
There are files for 1.16–26.3, 20 versions in total. The newest is 26.3.
Is Architectury API for Forge or Fabric?
There are files for Fabric: 26.1.2–26.3, for Forge: 1.16–1.20.1 and for NeoForge: 1.20–26.3.
Does Architectury API work on a server?
Yes. Architectury API works both in singleplayer and on a server.
Where can I download Architectury API safely?
On this page: the file architectury-fabric-22.0.5.jar (608 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: 8c5f566e32bd47fbb80be4932b9be1cfa97c4e3a.
评价
成为第一个评价 Architectury API 的人


