Migration
Learn how to migrate configs to OneConfig.
What is this?
public MyConfig() {
super(new Mod("My Mod", ModType.UTIL_QOL, new VigilanceMigrator("./old-config.toml")), "config.json");
initialize();
}MigrationNames
@VigilanceName( // retrieve the value from the old JSON file
name = "Old Name",
category = "Old Category",
subcategory = "Old Subcategory"
)
@Switch( // initialize a field like a normal config
name = "A random switch",
category = "General",
subcategory = "Switches"
)
public static boolean bob = false;Custom Migrators
Last updated
Was this helpful?