
FConfigLib
Version-independent configuration library for Fabric Mod Loader
Обновлён 3 января 2025 г. · опубликован 14 августа 2024 г.
FConfigLib
FConfigLib is a simple JSON configuration library designed specifically for Fabric Mod Loader.
Features
Version compatibility: FConfigLib is compatible with every Minecraft version, supported by Fabric Loader. It works on Ornithe, LegacyFabric, Babric, and other such projects.
Support for other games: This library is not dependent on Minecraft code, it can be run on any other Java game loaded through Fabric Loader.
Easy to use API: FConfigLib has annotation-based value limiters and validators. It allows for safe version conversion via config fixers.
Java 8+ is required in order for this mod to work.
For mod devs
How to add to your project
Add JitPack to your repositories list in build.gradle.
maven {
name "JitPack"
url "https://jitpack.io"
}
Add the following line to your dependencies in build.gradle.
dependencies {
...
modImplementation "com.github.ForwarD-NerN:fconfiglib:1.1.0")
}
Currently, there is no documentation available, however, you can look at an example here.
Версии
| Версия | Канал | Игра | Загрузчики | Дата | Скачать |
|---|---|---|---|---|---|
| 1.1.1 | Релиз | 26.2-pre-2, 26.2-pre-3, 26.2-pre-4, 26.2-pre-5 | fabric | 3 января 2025 г. | .jar (45 КБ) |
| 1.1.0 | Релиз | 1.20.5, 1.20.6, 1.21, 1.21.1 | fabric | 27 августа 2024 г. | .jar (39 КБ) |
| 1.0.1 | Релиз | 1.20.5, 1.20.6, 1.21, 1.21.1 | fabric | 16 августа 2024 г. | .jar (28 КБ) |
| 1.0.0 | Релиз | 1.20.5, 1.20.6, 1.21, 1.21.1 | fabric | 14 августа 2024 г. | .jar (28 КБ) |
Ченджлог
1.1.1Релиз26.2-pre-3, 26.2-pre-4, 26.2-pre-5 · 3 января 2025 г.
- Added ConfigManager.save() short for ConfigManager.save(this.getConfigFile())
- Made the ConfigManager constructor protected applyFixes() -> applyFixers()
- OptionValidator has been deprecated in favor of FieldValidator
1.1.0Релиз1.20.6, 1.21, 1.21.1 · 27 августа 2024 г.
A lot of breaking changes occurred in this version. So mods that used previous versions of FConfigLib would likely break(not like there are any right now). In the future, I would try to make this mod as backwards compatible as possible(starting from 1.1.0).
- Some access modifiers have been changed
- The way config fixers are registered and applied has been changed
- Added config validators, they can be applied with ConfigValidators annotation
- Added support for mixin-based configuration via @MixinOption and MixinConfigHelper
- Added Sl4j Logger Wrapper
- Lots of refactoring
1.0.1Релиз1.20.6, 1.21, 1.21.1 · 16 августа 2024 г.
Added isInitialized()
Moved createEmptyConfig() into ConfigManager
1.0.0Релиз1.20.6, 1.21, 1.21.1 · 14 августа 2024 г.
- Initial Release
Полная история изменений — на Modrinth.
Комментарии
Загружаем…