S-Lib 3.0.0 - Fabric 1.21.1
Curse Maven Snippet
What's new
Full Changelog
3.0.0+1.21.1
This update adds a brand-new and easy-to-use config system!
New Features
- Completely redesigned the config module from the ground up, making registering your configs possible in one line of code using
SLibConfig.syncedBuilder()andSLibConfig.localBuilder(). - Newly added config fields are automatically inserted with default values, old/useless keys are removed.
- Seven new annotations:
@Sync:OVERRIDE_CLIENT: server authoritative config, syncs to the client. Config broadcasts on login and updates in real time. Supports configurable permission checks (e.g., OP-only).INFORM_SERVER: local config, informs server of changesNONE: local config, no network sync
@RangeInt: clamps an int config field to a specified range@RangeFloat: clamps a float config field to a specified range@RangeDouble: clamps a double config field to a specified range@Comment: allows for comments to be added to config fields (supports text blocks)@Ignore: ignores a config field entirely@Nest: allows for nested classes for more complex config structures
- Unmodded / Vanilla server compatibility: client instances safely fall back to default values for server authoritative options. Local options can be freely modified.
- The config also supports serializing common classes like AWT's
Color, Minecraft'sTextColor,Identifier,Pattern, andUUID.
Fixes
- Fixed availability propagation in custom YACL controllers
Testing
- Created a new test mod to test the new config system S-Lib Test Mod.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects

