← 返回译文库

MINECRAFT RESOURCE TRANSLATIONS

Fabric API

轻量且模块化的 API,为使用 Fabric 工具链的模组提供常用钩子和互操作性措施。

library
访问原项目 ↗简体中文 · 简介与正文已就绪

项目介绍

Fabric API

使用 Fabric 进行模组开发所需的基本钩子。

Fabric API 是为 Fabric 模组提供基本钩子和互操作机制的库。例如:

  • 提供许多模组都需要但难以访问的功能,例如粒子、生物群系和维度
  • 添加事件、钩子和 API,以改善模组之间的互操作性。
  • 提供注册表同步、向崩溃报告添加信息等基本功能。
  • 提供高级渲染 API,旨在兼容优化模组和图形改造模组。

也可以看看 Fabric Loader,它是驱动 Fabric 的(大部分情况下)版本无关的模组加载器。Fabric API 和其他 Fabric 模组一样,安装时需要 Fabric Loader。

开发者和用户如需支持或参与讨论,请访问 the Fabric Discord server。

使用 Fabric API 游玩模组

请先安装 Fabric Loader。有关安装 Fabric Loader 的更多信息,请参阅 here。

下载的 jar 文件应放入你的 mods 文件夹中。

对照原文

Fabric API

Essential hooks for modding with Fabric.

Fabric API is the library for essential hooks and interoperability mechanisms for Fabric mods. Examples include:

  • Exposing functionality that is useful but difficult to access for many mods such as particles, biomes and dimensions
  • Adding events, hooks and APIs to improve interoperability between mods.
  • Essential features such as registry synchronization and adding information to crash reports.
  • An advanced rendering API designed for compatibility with optimization mods and graphics overhaul mods.

Also check out Fabric Loader, the (mostly) version-independent mod loader that powers Fabric. Fabric API is a mod like any other Fabric mod which requires Fabric Loader to be installed.

For support and discussion for both developers and users, visit the Fabric Discord server.

Using Fabric API to play with mods

Make sure you have installed fabric loader first. More information about installing Fabric Loader can be found here.

The downloaded jar file should be placed in your mods folder.

版本与依赖
版本Minecraft加载器依赖
[26.4-snapshot-6] Fabric API 0.165.1+26.426.4-snapshot-6fabric此版本未声明额外依赖
[26.4-snapshot-5] Fabric API 0.165.0+26.426.4-snapshot-5fabric此版本未声明额外依赖
[26.3] Fabric API 0.165.0+26.326.3fabric此版本未声明额外依赖
[26.4-snapshot-5] Fabric API 0.164.1+26.426.4-snapshot-5fabric此版本未声明额外依赖
[26.4-snapshot-4] Fabric API 0.164.0+26.426.4-snapshot-4fabric此版本未声明额外依赖
[26.3] Fabric API 0.164.0+26.326.3fabric此版本未声明额外依赖
[26.4-snapshot-4] Fabric API 0.163.0+26.426.4-snapshot-4fabric此版本未声明额外依赖
[26.3] Fabric API 0.163.0+26.326.3fabric此版本未声明额外依赖
[26.4-snapshot-4] Fabric API 0.162.3+26.426.4-snapshot-4fabric此版本未声明额外依赖
[26.4-snapshot-3] Fabric API 0.162.2+26.426.4-snapshot-3fabric此版本未声明额外依赖
[26.4-snapshot-2] Fabric API 0.162.1+26.426.4-snapshot-2fabric此版本未声明额外依赖
[26.4-snapshot-2] Fabric API 0.162.0+26.426.4-snapshot-2fabric此版本未声明额外依赖