Included content
| Name | |
|---|---|
fabric-api. Pretty much every mod uses it, you probably have it installed already.rimelib, and it's embedded in the mod for now. It's still under review on modrinth, but it's a library mod I've made that provides some utility functions for fabric mods. This is where the new config's backend lies, and chatcalc just implements a class for it.The config is now strongly typed with a config class, and there's a new config handler that handles all the config operations.
Previously, config was handled with a raw JsonObject, and the encoding was done manually with string concatenation magic.
This made it very hard to add a gui for the config or handle the config in a type-safe way, and there were a lot of checks for each config value to make sure it was valid.
Now, the config is handled with a Config class that has all the config values as properties, and the encoding is done with a codec.
This makes things much easier to handle, and it also allows for a gui to be added in the future. I'm planning on using YACL for the gui, but that's for another time.
The config format was also changed, and the codec should be able to decode both formats while only encoding the new one. However, I was unable to get a config file in the old format to test this, so please report any issues you encounter.
| Name | |
|---|---|
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.
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:o2oFdqXS:PljCHHuO"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:o2oFdqXS:PljCHHuO"
}