aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/platform/YACLConfig.java')
-rw-r--r--src/main/java/dev/isxander/yacl3/platform/YACLConfig.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java b/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java
new file mode 100644
index 0000000..0d14b41
--- /dev/null
+++ b/src/main/java/dev/isxander/yacl3/platform/YACLConfig.java
@@ -0,0 +1,18 @@
+package dev.isxander.yacl3.platform;
+
+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;
+
+public class YACLConfig {
+ public static final ConfigClassHandler<YACLConfig> HANDLER = ConfigClassHandler.createBuilder(YACLConfig.class)
+ .id(YACLPlatform.rl("config"))
+ .serializer(config -> GsonConfigSerializerBuilder.create(config)
+ .setPath(YACLPlatform.getConfigDir().resolve("yacl.json5"))
+ .setJson5(true)
+ .build())
+ .build();
+
+ @SerialEntry
+ public boolean showColorPickerIndicator = true;
+}