What are you searching for?

ConfigAnytime

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.

download 155.8K Downloads · favorite 12 Followers · Updated 1 year ago
Forge Library Utility 1.12.2

Versions

inventory_2
3.0

3.0 · 1 year ago · 5.08 KB

Release download
Forge 1.12.2
inventory_2
2.0

2.0 · 2 years ago · 4.99 KB

Release download
Forge 1.12.2
inventory_2
1.0 - First release

1.0 · 2 years ago · 4.97 KB

Release download
Forge 1.12.2

About

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);
    }
    
}
open_in_new View on Modrinth
Compatibility
Client: Required Server: Required
gavel MIT

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

Lightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.

download 128.4M
favorite 27,401
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.4M
favorite 13,670
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 77.7M
favorite 22,127
lock Cookie consent

SkinMC uses cookies to provide functionality and features.