
在 Discord 上与我们交流!
一个旨在简化多平台模组开发的中介 API。

什么是 Architectury API
Architectury API 是一个用于抽象调用 Fabric API 和 Forge API 的 API,因为两个加载器对于看似相同的事物有着不同的实现。
Architectury API 定期更新,带来新的钩子和功能。目前包含超过 90 个事件钩子、网络抽象、加载器调用抽象、游戏注册表抽象,以及一个易于使用的 @ExpectPlatform 注解(仅适用于静态方法)。
我真的需要这个 API 吗?
Architectury API 只是 Architectury 生态系统的一部分,Architectury Plugin 才是实现所有这些多平台操作的 Gradle 插件。
对于基于 Architectury 构建的项目来说,Architectury API 是可选的,你可以仅使用 Architectury Plugin 来创建你的 Architectury 项目。
Architectury 的优势
开始制作多平台模组
Architectury Loom: (Fabric Loom 的一个分支,增加了多平台开发能力)
Gradle 插件: (包含 Architectury Injectables,用于 @ExpectPlatform 注解)
示例模组: (一个已停止维护的、使用 Architectury 的示例模组,如有可能,请改用模板)
模组模板: (一组用于开始使用 Architectury 工具链的模板)
示例:@ExpectPlatform 的用法

致谢
在某些较旧的版本中,此库曾捆绑了 typetools;你可以在此处找到其许可证。

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: (a fork of Fabric Loom adding multiplatform development capabilities)
Gradle Plugin: (includes Architectury Injectables, for the @ExpectPlatform annotation)
Example Mod: (a discontinued example mod using Architectury, if possible, use the templates instead)
Mod 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧