aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2024-04-14 23:19:21 +0100
committerisXander <xander@isxander.dev>2024-04-14 23:19:21 +0100
commit97bbc5a3d91ed57e55796777bbfc117ff28e2221 (patch)
tree3b9d17cb271a7676149d9d62bcbbe32bc72d4f9c /src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
parent26aec79e10025ff3427ceb47602156ebd670b2ac (diff)
downloadYetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.tar.gz
YetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.tar.bz2
YetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.zip
Add Kotlin DSL
Diffstat (limited to 'src/testmod/java/dev/isxander/yacl3/test/GuiTest.java')
-rw-r--r--src/testmod/java/dev/isxander/yacl3/test/GuiTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
index 3ddfce6..cdc1285 100644
--- a/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
+++ b/src/testmod/java/dev/isxander/yacl3/test/GuiTest.java
@@ -49,6 +49,12 @@ public class GuiTest {
Minecraft.getInstance().setScreen(AutogenConfigTest.INSTANCE.generateGui().generateScreen(screen));
})
.build())
+ .option(ButtonOption.createBuilder()
+ .name(Component.literal("Kotlin DSL Test"))
+ .action((screen, opt) -> {
+ Minecraft.getInstance().setScreen(DslTestKt.kotlinDslGui(screen));
+ })
+ .build())
.group(OptionGroup.createBuilder()
.name(Component.literal("Wiki"))
.option(ButtonOption.createBuilder()