modularization, part 1

This commit is contained in:
Draylar
2021-03-12 14:10:21 -06:00
parent 5ab6b91dce
commit e6b551a0aa
29 changed files with 160 additions and 89 deletions
@@ -0,0 +1,35 @@
package draylar.omegatest;
import draylar.omegaconfig.api.Comment;
import draylar.omegaconfig.api.Config;
import draylar.omegaconfig.api.Syncing;
import org.jetbrains.annotations.Nullable;
@Syncing
public class TestConfig implements Config {
@Comment(value = "Hello!")
boolean v = false;
@Comment(value = "I'm a double.")
double doubleTest = 0.0;
@Comment(value = "This is an inner static class.")
public Test test = new Test();
public static class Test {
@Comment(value = "This is the value inside the class!")
public boolean innerTest = false;
}
@Override
public String getFileName() {
return "test-config";
}
@Override
public @Nullable String getModid() {
return "omega-config-test";
}
}