From 78274eb2b66b27052fe32960916fa4419202dc76 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sat, 12 Feb 2022 19:44:15 +0100 Subject: finish config backend --- src/main/java/io/polyfrost/oneconfig/test/TestConfig.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/io/polyfrost/oneconfig/test') 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")); } } -- cgit