All versions
Scheduled API removal in 0.6.0:
0.5.9+1.20.4+neoforge
Release
fzzy_config-0.5.9+1.20.4+neoforge2 years ago 721
Compatibility
Minecraft: Java Edition
1.20.4
Platform
NeoForge
Supported environments
Client and server
Required content
Changes
Scheduled API removal in 0.6.0: ValidatedEntityAttribute. Reimplement usages of this class as needed.
Additions
- New
isDevmethod inPlatformApifor checking if the instance is running in a development environment. - Implemented a barebones
Registrarsystem for platform-agnostic registration of objects. This API is experimental, with scheduled stability by 0.6.0.- Registers objects into
RegistrySupplierinstances, much like the (Neo)Forge deferred registry system.
- Registers objects into
- Added
onRegisteredClientandonRegisteredServerto theEventApifor listening to config registrations and only acting after the config has been successfully registered. - New version of
ValidatedField.validateAndSet,validateAndSetFlaggedthat acceptsEntryFlag.Flag(and inspects the field own flags) and changes set behavior based on flags present.EntryFlag.Flag.QUIET: flagged field won't call listeners on changeEntryFlag.Flag.STRONG: fieldvalidateAndSet/validateAndSetFlaggedwill use strong validation. Weak validation is standard.EntryFlag.Flag.UPDATE: field will update its current sync state when the value is set.
- Added overload to
ValidationResult.reportthat takes a string consumer directly for immediate reporting of issues. - New
Codecshelper class in PortingUtils for handling version-agnostic Packet Codecs. Thanks Mojang.
Changes
ConfigApi.isConfigLoaded(scope)has been deprecated in favor ofConfigApi.isConfigLoaded(scope, type). This new overload can check for client configs; the now-deprecated method only checked synced ones.- Also consider the new register event instead of trying to check for config load yourself.
- Scheduled
ValidatedEntityAttributefor removal in 0.6.0. It is completely unused as far as I can tell with a github-wide search, and quite an unstable concept in general. If needed, a similar validation can be built for your own usage.
Fixes
- Fixed inaccurate docs in
ValidatedEntityAttribute.BuilderandEntityAttributeInstanceHolder
Supplementary resources
| File | Type | Size | |
|---|---|---|---|
| fzzy_config-0.5.9+1.20.4+neoforge-sources.jar | Unknown | 415.59 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:QH0fLChv"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:hYykXjDp:QH0fLChv"
}


