跳到正文

hcapi

Holder Component API - Allows conveniently attaching data to holders via datapack

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Holder Components by @CallMeEcho (with contributions from @EightSidedSquare) is a (hopefully) upcoming Fabric API module. This project repackages that WIP module as a library under FAPI’s Apache-2.0 license and with permission from Echo. A big thank you to Echo for putting together such a useful and robust piece of code.

hcapi allows conveniently setting and accessing components on elements of any registry, not just items. These components may be data-driven or defined by code, and they may be synchronized to the client. This happens to make server-side default item components possible and straightforward.

See the PR for a description of the API. Note that instances of fabric in names and paths have been renamed to hcapi since this is not an official fabric library, so check the source code for exact names and paths.

常见问题

hcapi 支持哪些 Minecraft 版本?

hcapi 支持 Minecraft Java 版 26.1–26.3,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

hcapi 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

ThePotatoArchivist 的其他作品

查看全部 →