2021-05-26 14:30:56 -05:00
2021-04-05 19:19:56 -05:00
2021-03-13 16:19:16 -06:00
2021-05-26 14:30:32 -05:00
2021-05-26 14:30:56 -05:00
2021-03-12 13:24:17 -06:00
2021-03-12 13:24:17 -06:00
2021-03-12 13:24:17 -06:00
2021-03-13 15:09:21 -06:00
2021-03-12 15:13:36 -06:00
2021-03-12 14:10:21 -06:00

ΩConfig


The last config library you will ever use.

ΩConfig is a hyper-minimal config library based on Auto Config. It aims to achieve the following goals:

  • Be lightweight (<10 KB) for JIJ usage
  • Exceedingly simple design & API for developers
  • Intuition and usability for players

The following is an example of a simple ΩConfig setup:

public class TestConfig implements Config {

    @Comment(value = "Hello!")
    boolean value = false;

    @Override
    public String getFileName() {
        return "test-config";
    }
}

public class MyModInitializer {

    public static final TestConfig CONFIG = OmegaConfig.register(TestConfig.class);

    @Override
    public void onInitialize() {
        System.out.printf("Config value: %s%n", CONFIG.value);
    }
}

Extra API Utilities

ΩConfig provides several utility methods for developers.

save() - saves a modified configuration instance to disk

MyModInitializer.CONFIG.value = false;
MyModInitializer.CONFIG.save(); // writes the new value to disk

License

ΩConfig is available under Public Domain. You are encouraged to utilize the code in this repository in any way you wish.

S
Description
No description provided
Readme
224 KiB
1.4.2-1.20.1
Latest
2025-01-01 13:27:06 -08:00
Languages
Java 100%