aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java b/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java
deleted file mode 100644
index 4f53dd4..0000000
--- a/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package dev.isxander.yacl3.api;
-
-import dev.isxander.yacl3.gui.YACLScreen;
-import dev.isxander.yacl3.impl.ButtonOptionImpl;
-import net.minecraft.network.chat.Component;
-import org.jetbrains.annotations.NotNull;
-
-import java.util.function.BiConsumer;
-import java.util.function.Consumer;
-
-public interface ButtonOption extends Option<BiConsumer<YACLScreen, ButtonOption>> {
- /**
- * Action to be executed upon button press
- */
- BiConsumer<YACLScreen, ButtonOption> action();
-
- static Builder createBuilder() {
- return new ButtonOptionImpl.BuilderImpl();
- }
-
- interface Builder {
- /**
- * Sets the name to be used by the option.
- *
- * @see Option#name()
- */
- Builder name(@NotNull Component name);
-
- /**
- * Sets the button text to be displayed next to the name.
- */
- Builder text(@NotNull Component text);
-
- Builder description(@NotNull OptionDescription description);
-
- Builder action(@NotNull BiConsumer<YACLScreen, ButtonOption> action);
-
- /**
- * Action to be executed upon button press
- *
- * @see ButtonOption#action()
- */
- @Deprecated
- Builder action(@NotNull Consumer<YACLScreen> action);
-
- /**
- * Sets if the option can be configured
- *
- * @see Option#available()
- */
- Builder available(boolean available);
-
- ButtonOption build();
- }
-}