aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/test
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-02-12 19:44:15 +0100
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-02-12 19:44:15 +0100
commit78274eb2b66b27052fe32960916fa4419202dc76 (patch)
tree92412c6a835cf07dbee6dbd232c71e299740bad6 /src/main/java/io/polyfrost/oneconfig/test
parent56b75c981609a89639dfd3860ca890af64d2bfbe (diff)
downloadOneConfig-78274eb2b66b27052fe32960916fa4419202dc76.tar.gz
OneConfig-78274eb2b66b27052fe32960916fa4419202dc76.tar.bz2
OneConfig-78274eb2b66b27052fe32960916fa4419202dc76.zip
finish config backend
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/test')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/test/TestConfig.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java b/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java
index 21259ac..3cfceaa 100644
--- a/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java
+++ b/src/main/java/io/polyfrost/oneconfig/test/TestConfig.java
@@ -3,6 +3,8 @@ package io.polyfrost.oneconfig.test;
import io.polyfrost.oneconfig.annotations.Category;
import io.polyfrost.oneconfig.annotations.Switch;
import io.polyfrost.oneconfig.annotations.TextField;
+import io.polyfrost.oneconfig.data.ModData;
+import io.polyfrost.oneconfig.data.ModType;
import io.polyfrost.oneconfig.interfaces.Config;
import java.io.File;
@@ -15,10 +17,10 @@ public class TestConfig extends Config {
@Category(name = "Cool Category")
public static class category {
@TextField(name = "Cool text field")
- public static String text = "e";
+ public static String text = "Very cool text";
}
public TestConfig() {
- super(new File("./config/testConfig.json"));
+ super(new ModData("hacks", ModType.QOL, "ShadyDev", "1.0"), new File("./config/hacksConfig.json"));
}
}