aboutsummaryrefslogtreecommitdiff
path: root/test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java')
-rw-r--r--test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java78
1 files changed, 0 insertions, 78 deletions
diff --git a/test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java b/test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java
deleted file mode 100644
index a8f49b0..0000000
--- a/test-common/src/main/java/dev/isxander/yacl3/test/ConfigTest.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package dev.isxander.yacl3.test;
-
-import dev.isxander.yacl3.config.v2.api.ConfigClassHandler;
-import dev.isxander.yacl3.config.v2.api.SerialEntry;
-import dev.isxander.yacl3.config.v2.api.serializer.GsonConfigSerializerBuilder;
-import dev.isxander.yacl3.platform.YACLPlatform;
-import net.minecraft.ChatFormatting;
-import net.minecraft.world.item.Item;
-import net.minecraft.world.item.Items;
-
-import java.awt.*;
-import java.util.List;
-
-public class ConfigTest {
- public static final ConfigClassHandler<ConfigTest> GSON = ConfigClassHandler.createBuilder(ConfigTest.class)
- .serializer(config -> GsonConfigSerializerBuilder.create(config)
- .setPath(YACLPlatform.getConfigDir().resolve("yacl-test.json"))
- .build())
- .build();
-
- @SerialEntry
- public boolean booleanToggle = false;
- @SerialEntry
- public boolean customBooleanToggle = false;
- @SerialEntry
- public boolean tickbox = false;
- @SerialEntry
- public int intSlider = 0;
- @SerialEntry
- public double doubleSlider = 0;
- @SerialEntry
- public float floatSlider = 0;
- @SerialEntry
- public long longSlider = 0;
- @SerialEntry
- public String textField = "Hello";
- @SerialEntry
- public Color colorOption = Color.red;
- @SerialEntry
- public double doubleField = 0.5;
- @SerialEntry
- public float floatField = 0.5f;
- @SerialEntry
- public int intField = 5;
- @SerialEntry
- public long longField = 5;
- @SerialEntry
- public Alphabet enumOption = Alphabet.A;
- @SerialEntry
- public String stringOptions = "Banana";
- @SerialEntry
- public String stringSuggestions = "";
- @SerialEntry
- public Item item = Items.OAK_LOG;
- @SerialEntry
- public ChatFormatting formattingOption = ChatFormatting.RED;
-
- @SerialEntry
- public List<String> stringList = List.of("This is quite cool.", "You can add multiple items!", "And it is integrated so well into Option groups!");
- @SerialEntry
- public List<Integer> intList = List.of(1, 2, 3);
-
- @SerialEntry
- public boolean groupTestRoot = false;
- @SerialEntry
- public boolean groupTestFirstGroup = false;
- @SerialEntry
- public boolean groupTestFirstGroup2 = false;
- @SerialEntry
- public boolean groupTestSecondGroup = false;
-
- @SerialEntry
- public int scrollingSlider = 0;
-
- public enum Alphabet {
- A, B, C
- }
-}