All versions
0.5.0+1.20.1+forge
Beta
fzzy_config-0.5.0+1.20.1+forge2 years ago 11.5K
Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Forge
NeoForge
Supported environments
Client and server
Required content
Changes
Additions
- Added
ValidatedFieldmapping. Validation can be mapped to validation of any other convertible type with the newmapmethods.- New helper class
ValidatedRegistryTypemapsValidatedIdentifierto registry objects, allowing for easy direct implmentation of setting based on registry objects (Items, Blocks, etc) without having to later map the identifiers yourself.
- New helper class
ValidatedFieldnow has a helpercodecmethod for generating a Codec of the underlying type.ValidatedFieldnow has a listener system that triggers on anysetof the field. This listener is aConsumer<ValidatedField<T>>and is added withwithListener- Added
EventApiand corresponding direct implementations in theConfigclass- like other sub-apis, access this Api through the
ConfigApi onSyncClient- fires when a config is synced to a clientonUpdateClient- fires when a config is updated in-game on the client sideonUpdateServer- fires when a config is updated in-game on the server side
- like other sub-apis, access this Api through the
- Added
ConfigAction, which can be used to add arbitrary on-click buttons in the Config GUI. Use them to link to your wiki, open a patchouli guide book, give the player an item, etc. - Added extremely basic
PlatformApifor simple cross-loader tasks like checking if the game state is client-sided or not.
Changes
- Specialized widgets no longer internally extend
PressableWidgetorButtonWidget, which was causing issues with Visual Overhaul or any other mod that leaks the constructor of the widget. It is recommended to use theCustomvariants of those classes for any custom validation implementation.
Fixes
ValidatedIdentifiercan now bind to dynamic registries using theofRegistryKeyinitializer methods.- Fix syncing on login not working.
- Fixed updates on client-only configs sometimes blasting the log with the full config contents.
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| fzzy_config-0.5.0+1.20.1+forge-sources.jar | Unknown | 374.26 KiB |
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:hYykXjDp:AT8bwOXr"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:hYykXjDp:AT8bwOXr"
}


