跳到正文

CorimLib

作者:py54

Cross-loader GUI/HUD/feature framework powering multiple mods. A library mod - no gameplay effect on its own.

收藏

介绍

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

A lightweight cross-loader abstraction and shared GUI/HUD/feature framework, built for Crunch as an alternative to a full Architectury dependency.

What is CorimLib

CorimLib abstracts the small set of loader-specific hooks a client-side QoL mod actually needs – keybind registration, tick/client-started events, HUD element registration, tooltip/chat callbacks, config directory resolution – behind one PlatformBridge interface, loaded per-loader via java.util.ServiceLoader. No bytecode-manipulation Gradle plugin, no @ExpectPlatform, no architectury-loom fork: just plain Java interfaces and a service loader, because Minecraft’s Fabric/NeoForge/Forge APIs diverge far less for a client-only QoL mod than they do for full multiplatform content mods.

On top of that, CorimLib ships:

A Feature/Setting framework (Boolean/Int/Decimal/Enum/Color/Keybind/Text settings, categories, JSON persistence via Gson, profiles) for building a toggle-driven config GUI without reinventing it per mod.
A dark modal-panel/card UI toolkit (CrunchTheme) with chamfered-corner panels and hand-drawn icons, for a consistent modern look without vanilla’s beveled-button chrome.
A draggable, auto-stacking HUD text-line system that reflows itself with no gaps when lines are toggled on/off.
Do I really need this?
If you’re building a mod with content shared across loaders (blocks, items, entities), you want Architectury API or a similar full multiplatform toolchain – CorimLib doesn’t attempt that. If you’re building a client-side-only QoL/HUD/visual mod and want the small set of hooks above without a heavier dependency, CorimLib is that scope, and nothing more.

CorimLib is currently developed alongside Crunch specifically – its common module (the Feature/Setting/Config framework) is generic and reusable today; the GUI/HUD/mixin logic is still wired fairly directly to Crunch’s own classes. Treat it as “extracted for Crunch, usable by others with some integration work,” not yet a polished standalone SDK.

Advantages

Small, auditable surface – no bytecode magic
No Fabric API dependency at all (only Fabric Loader/Minecraft/Java)

⚠️ Important Notice

CorimLib 1.0.0 is currently not recommended for new projects.

Documentation for this version is no longer available. Please use a newer documented release when available.

常见问题

CorimLib 支持哪些 Minecraft 版本?

CorimLib 支持 Minecraft Java 版 26.1–26.2,共 4 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

CorimLib 怎么安装?

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

评论

登录后评论和评分

py54 的其他作品

查看全部 →