implement custom file extensions and directories with appropriate tests, vbump to 1.0.4
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package draylar.omegatest;
|
||||
|
||||
import draylar.omegaconfig.api.Config;
|
||||
|
||||
public class NestedConfig implements Config {
|
||||
|
||||
public boolean test = false;
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "nested";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDirectory() {
|
||||
return "test";
|
||||
}
|
||||
}
|
||||
@@ -123,4 +123,9 @@ public class NewTestConfig implements Config {
|
||||
public int killer_bunny_castle_seperation = 25;
|
||||
public int killer_bunny_castle_spacing = 50;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExtension() {
|
||||
return "json5";
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ public class OmegaTestMain implements ModInitializer {
|
||||
|
||||
public static final TestConfig CONFIG = OmegaConfig.register(TestConfig.class);
|
||||
public static final NewTestConfig MO_CONFIG = OmegaConfig.register(NewTestConfig.class);
|
||||
public static final NestedConfig NESTED = OmegaConfig.register(NestedConfig.class);
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
|
||||
Reference in New Issue
Block a user