diff options
author | isXander <xander@isxander.dev> | 2023-08-15 16:13:54 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2023-08-15 16:13:54 +0100 |
commit | 9f72a09a5b2afc99b08a79bda84f91ef51c0f4d0 (patch) | |
tree | 56c7214bf95fa50e2469762b972cb6163f5f1b14 /test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | |
parent | 3e30af10ab48aa64fa659834a863a4e3067d5542 (diff) | |
download | YetAnotherConfigLib-9f72a09a5b2afc99b08a79bda84f91ef51c0f4d0.tar.gz YetAnotherConfigLib-9f72a09a5b2afc99b08a79bda84f91ef51c0f4d0.tar.bz2 YetAnotherConfigLib-9f72a09a5b2afc99b08a79bda84f91ef51c0f4d0.zip |
Add javadoc to config api v2
Diffstat (limited to 'test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java')
-rw-r--r-- | test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java index 4953d0c..6430c48 100644 --- a/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java +++ b/test-common/src/main/java/dev/isxander/yacl3/test/GuiTest.java @@ -45,7 +45,7 @@ public class GuiTest { .option(ButtonOption.createBuilder() .name(Component.literal("Auto-gen test")) .action((screen, opt) -> { - ConfigV2Test.INSTANCE.serializer().deserialize(); + ConfigV2Test.INSTANCE.serializer().load(); Minecraft.getInstance().setScreen(ConfigV2Test.INSTANCE.generateGui().generateScreen(screen)); }) .build()) @@ -64,7 +64,7 @@ public class GuiTest { private static Screen getFullTestSuite(Screen parent) { AtomicReference<Option<Boolean>> booleanOption = new AtomicReference<>(); - ConfigTest.GSON.serializer().deserialize(); + ConfigTest.GSON.serializer().load(); return YetAnotherConfigLib.create(ConfigTest.GSON, (defaults, config, builder) -> builder .title(Component.literal("Test GUI")) .category(ConfigCategory.createBuilder() @@ -380,7 +380,7 @@ public class GuiTest { .build()) .save(() -> { Minecraft.getInstance().options.save(); - ConfigTest.GSON.serializer().serialize(); + ConfigTest.GSON.serializer().save(); }) ) .generateScreen(parent); |