YetAnotherConfigLib

YetAnotherConfigLib

59492121 次下载
最近更新9 个月前
一个用于《我的世界》的基于构建器的配置库。 A builder-based configuration libr...

YetAnotherConfigLib

又一个配置库,你还期待它是什么呢?

这个模组为什么会存在?

制作这个模组是为了填补织物(Fabric)模组开发领域的一个空白。现有的主要配置库无法满足我的期望:

  • 布(Cloth)配置API它已经停滞不前。 布的开发者已经明确表示,他们很可能不会再添加更多功能。他们不想再碰它了。
  • 云杉用户界面(SpruceUI)它并非为配置而设计。 从本质上讲,其设计感觉很杂乱。此问题中有更多细节。
  • OwoLib它以内容为重点。 就像午夜库(MidnightLib)一样,它也做了很多其他事情,增加了体积。

如你所见,遗憾的是它们都有缺点,而这就是YetAnotherConfigLib的用武之地。

YACL 好在哪里?

YACL 得益于事后的经验。在开发这个全新的库时,我可以确保它把所有事情都做好:

  • 它只是一个配置库。 YACL 不包含其他功能,仅用于生成配置界面。
  • 它很轻量。 YACL 让你自己管理配置,它不包含自动配置(AutoConfig)或类似功能的替代品。(可以与我的另一个库 Settxi 搭配使用来实现此功能)
  • 简单的API。 YACL 从钠(Sodium)的内部配置库中获取灵感。
  • 它的风格与我的世界相契合。 YACL 的图形用户界面(GUI)设计得与游戏完美融合。

用法

维基百科包含关于如何使用 YACL 的完整文档。

截图

许可证

这个模组遵循 GNU 较宽松通用公共许可证 v3.0。


YetAnotherConfigLib

Yet Another Config Lib, like, what were you expecting?

Why does this mod even exist?

This mod was made to fill a hole in this area of Fabric modding. The existing main config libraries don't achieve what I want from them:

  • Cloth Config API: It's stale. The developer of cloth has clarified that they are likely not going to add any more features. They don't want to touch it.
  • SpruceUI: It isn't designed for configuration. In this essence the design feels cluttered. Further details available in this issue.
  • OwoLib: It's content focused. Like MidnightLib, it does a lot of other things as well, adding to the size.

As you can see, there's sadly a drawback with all of them and this is where YetAnotherConfigLib comes in.

How is YACL better?

YACL has the favour of hindsight. Whilst developing this fresh library, I can make sure that it does everything right:

  • It's just a config library. YACL contains no other features, just config screen generation.
  • It's lightweight. YACL leaves managing your config up to you, it doesn't contain an alternative to AutoConfig or similar. (Can be paired with my other library, Settxi, for this feature)
  • Easy API. YACL takes inspiration from Sodium's internal configuration library.
  • It's styled to fit in Minecraft. YACL's GUI is designed to fit right in.

Usage

The wiki contains a full documentation on how to use YACL.

Screenshots

License

This mod is under the GNU Lesser General Public License, v3.0.

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!