You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows Forge configurations to be setup at any point in time. Especially for developers that use Forge's configuration system during coremod/tweaker's loading stage.
Dev Usage:
Add CleanroomMC's repository and depend on ConfigAnytime's maven entry:
@Config(modid = "configanytime")
publicclassConfigClass {
publicstaticbooleanconfigBooleanProperty = true;
publicstaticintconfigIntProperty = 42;
publicstaticfinalInnerClassINNER_CLASS = newInnerClass(); // Inner access via this member, this is processed automatically by ConfigManagerpublicstaticclassInnerClass {
publicbooleaninnerProperty = false; // Must be non-static, referenced via the member field in the outer class
}
// Static initializers go after the properties!// This will run automatically when you retrieve any properties from this config classstatic {
ConfigAnytime.register(ConfigClass.class);
}
}