跳到正文

COAL – Cloth Config adapter

作者:oliveryasuna

Renders every COAL-using mod's settings screen in Cloth Config.

收藏

介绍

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

Renders every COAL-using mod’s settings screen
in Cloth Config, plus JSON
persistence, load-time validation, and versioned migrations.

For players

Install all three side-by-side in your mods/ folder:

  1. COAL — the abstraction layer that COAL-consuming mods depend on.
  2. coal-cloth-adapter — this mod.
  3. Cloth Config — the GUI library that actually renders the screens.

Any mod that consumes COAL will use Cloth Config for its settings screen once
these three are installed together.

Cloth vs. YACL

Cloth Config’s sub-category widget recurses cleanly, so this adapter
preserves deep-nested config trees end-to-end. YACL’s equivalent flattens
after two levels. If your mods declare heavily-nested configs and you want
every level preserved in the GUI, pick this adapter.

Don’t install alongside coal-yacl-adapter

Only one COAL adapter should be installed at a time. If you’d rather use
YACL, install coal-yacl-adapter
instead of this one.

For mod authors

You don’t compile against this mod. Depend on coal-api +
coal-api-gui-<loader> at compile time; your users install whichever adapter
they prefer at runtime. See the docs for
the walkthrough.

Feature coverage

Advertises MIGRATION, VALIDATION, and GUI_DELEGATION. Does not advertise
SYNC, FILE_WATCH, JSON5, or CUSTOM_FORMATS — see the module README on
GitHub for the full annotation-to-widget mapping and known limitations.

Links

常见问题

COAL – Cloth Config adapter 支持哪些 Minecraft 版本?

COAL – Cloth Config adapter 支持 Minecraft Java 版 1.21.8,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

COAL – Cloth Config adapter 怎么安装?

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

评论

登录后评论和评分

oliveryasuna 的其他作品

查看全部 →