Class Config.MigrationChain
java.lang.Object
com.github.darksoulq.abyssallib.common.config.Config.MigrationChain
- Enclosing class:
Config
A fluent builder for defining data migrations specific to this configuration file.
-
Method Summary
Modifier and TypeMethodDescriptionapply()Executes the migration chain and finalizes the configuration state.Registers a data fixer to transition the config from a specific version.
-
Method Details
-
fix
Registers a data fixer to transition the config from a specific version.- Parameters:
fromVersion- The version this fixer applies to.fixer- The data mutation logic.- Returns:
- This builder instance for chaining.
-
apply
-