package io.gitlab.jfronny.libjf.config.test; import io.gitlab.jfronny.libjf.config.api.JfCustomConfig; import io.gitlab.jfronny.libjf.config.api.dsl.DSL; public class TestConfigCustom { public static Integer someValue = 10; public static String someOther = "Yes"; public static class SomeCategory { public static Boolean someBool = true; } public static class LibJF_Companion implements JfCustomConfig { @Override public void register(DSL.Defaulted dsl) { dsl.register(builder -> builder .referenceConfig("libjf-config-reflect-v0-testmod") .value("someValue", 10, -50, 50, () -> someValue, v -> someValue = v) .value("someOther", "Yes", () -> someOther, v -> someOther = v) .category("SomeCategory", builder1 -> builder1 .value("someBool", true, () -> SomeCategory.someBool, v -> SomeCategory.someBool = v) ) ); } } static { new LibJF_Companion().register(DSL.create("libjf-config-v1-testmod")); } }