fakeneko_config
A lightweight, MaLiLib-like Minecraft configuration library for Fabric and NeoForge. It provides a pure Java API, Gson JSON serialization, automatic configuration GUI, and combo-key hotkey support.
Features
- Pure Java, only depends on Minecraft and Gson
- Supports Boolean / Integer / Double / String / StringList / Hotkey config types
- Automatic JSON serialization and deserialization
- Automatic configuration GUI generation
- Supports categories, default values, reset, and change callbacks
- Supports combo-key hotkey binding
Why fakeneko_config
From a developer-friendliness perspective, fakeneko_config is much cleaner than traditional Cloth Config / YACL solutions.
Comparison
| Aspect | Old ScreenBuilder / ScreenBuilderYacl | fakeneko_config |
|---|---|---|
| Code size | Need to write two GUI implementations (Cloth + YACL) and detect which library is loaded | Register config entries and they render automatically |
| Dependency management | Depends on Cloth Config and YACL, must handle version compatibility and optional/suggests | Unified fakeneko_config GUI with fewer external dependencies |
| Config type extension | Need to write GUI bindings for each new type | Library already supports Boolean, Hotkey, etc.; just new them |
| Serialization | Write your own Gson save/load | Library saves/loads automatically |
| Hotkeys | Register and listen with KeyMapping yourself |
Library listens to keyboard/mouse events automatically; BooleanConfig.withHotkey binds in one line |
| Config screen entry | Write your own Fabric ModMenu / NeoForge ModList adapter | Use ConfigScreen directly |