diff options
author | xander <xander@isxander.dev> | 2022-09-02 11:16:48 +0100 |
---|---|---|
committer | xander <xander@isxander.dev> | 2022-09-02 11:16:48 +0100 |
commit | dd24e4f8e84ed02913196c8ad6093275acc92219 (patch) | |
tree | a9b846f6efad8f122c8364c499b098d95a23034d /src/testmod/java | |
parent | 7c58fdd5aa54e88c1526c49adacaf97cf3810eba (diff) | |
download | YetAnotherConfigLib-dd24e4f8e84ed02913196c8ad6093275acc92219.tar.gz YetAnotherConfigLib-dd24e4f8e84ed02913196c8ad6093275acc92219.tar.bz2 YetAnotherConfigLib-dd24e4f8e84ed02913196c8ad6093275acc92219.zip |
button options now consume YACLScreen
Diffstat (limited to 'src/testmod/java')
-rw-r--r-- | src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java index c9318ad..d1fad67 100644 --- a/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java +++ b/src/testmod/java/dev/isxander/yacl/test/ModMenuIntegration.java @@ -93,7 +93,7 @@ public class ModMenuIntegration implements ModMenuApi { .build()) .option(ButtonOption.createBuilder() .name(Text.of("Button \"Option\"")) - .action(() -> SystemToast.add(MinecraftClient.getInstance().getToastManager(), SystemToast.Type.TUTORIAL_HINT, Text.of("Button Pressed"), Text.of("Button option was invoked!"))) + .action(screen -> SystemToast.add(MinecraftClient.getInstance().getToastManager(), SystemToast.Type.TUTORIAL_HINT, Text.of("Button Pressed"), Text.of("Button option was invoked!"))) .controller(ActionController::new) .build()) .build()) @@ -155,67 +155,67 @@ public class ModMenuIntegration implements ModMenuApi { .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .option(ButtonOption.createBuilder() .name(Text.of("Option")) - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .build()) @@ -278,7 +278,7 @@ public class ModMenuIntegration implements ModMenuApi { .option(ButtonOption.createBuilder() .name(Text.of("Pressable Button")) .tooltip(Text.of("This is so easy!")) // optional - .action(() -> {}) + .action(screen -> {}) .controller(ActionController::new) .build()) .build()) |