COWMODSКаталог модов

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.

Автор: Rongmario292,8 тыс.14обновлён 26 мар. 2024 г.
БиблиотекиУтилиты

Описание

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);
    }
    
}

Последние версии

Все версии →
release

3.0

3.0
26 мар. 2024 г.264,9 тыс.Minecraft: 1.12.2forge
Скачать
Что нового
- Fixes configs not being named when annotation name isn't populated
release

2.0

2.0
30 янв. 2024 г.4,9 тыс.Minecraft: 1.12.2forge
Скачать
Что нового
- Delay NO-OP checks so configurations registered in ILateMixinLoader runs properly
release

1.0 - First release

1.0
27 авг. 2023 г.23 тыс.Minecraft: 1.12.2forge
Скачать
Что нового
First release.