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.
All Versions
+ Add Version- Added ConfigManager.save() short for ConfigManager.save(this.getConfigFile())
- Made the ConfigManager constructor protected
- OptionValidator has been deprecated in favor of FieldValidator
- Some access modifiers have been changed <br>
- The way config fixers are registered and applied has been changed <br>
- Added config validators, they can be applied with ConfigValidators annotation <br>
- Added support for mixin-based configuration via @MixinOption and MixinConfigHelper
- Added Sl4j Logger Wrapper
- Lots of refactoring
Moved createEmptyConfig() into ConfigManager
- Initial Release