Перейти к содержимому
Mineforgian

ConfigAnytime

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.

228K загрузок13 подписчиковMITforge

Обновлён 26 марта 2024 г. · опубликован 27 августа 2023 г.

ConfigAnytime

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:
repositories {
    maven {
        url 'https://maven.cleanroommc.com'
    }
}

dependencies {
    implementation 'com.cleanroommc:configanytime:3.0'
}
  • Example API Usage:
@Config(modid = "configanytime")
public class ConfigClass {
    
    public static boolean configBooleanProperty = true;
    public static int configIntProperty = 42;
    
    public static final InnerClass INNER_CLASS = new InnerClass(); // Inner access via this member, this is processed automatically by ConfigManager
    
    public static class InnerClass {
        
        public boolean innerProperty = 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 class
    static {
        ConfigAnytime.register(ConfigClass.class);
    }
    
}

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
3.0Релиз1.12.2forge26 марта 2024 г..jar (5 КБ)
2.0Релиз1.12.2forge30 января 2024 г..jar (5 КБ)
1.0Релиз1.12.2forge27 августа 2023 г..jar (5 КБ)

Ченджлог

3.0Релиз1.12.2 · 26 марта 2024 г.
  • Fixes configs not being named when annotation name isn't populated
2.0Релиз1.12.2 · 30 января 2024 г.
  • Delay NO-OP checks so configurations registered in ILateMixinLoader runs properly
1.0Релиз1.12.2 · 27 августа 2023 г.

First release.

Полная история изменений — на Modrinth.

Комментарии

Загружаем…