aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/api
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2023-06-17 09:14:17 +0100
committerisXander <xandersmith2008@gmail.com>2023-06-17 09:28:51 +0100
commitd75d72f4e19ab57e745f21aac8e99d5246d04317 (patch)
tree7425972a80f359be8350912f3c8ad4191a4745c7 /common/src/main/java/dev/isxander/yacl3/api
parenteb50b8f35d976b71f71c49b2e8108312aa7aa286 (diff)
downloadYetAnotherConfigLib-d75d72f4e19ab57e745f21aac8e99d5246d04317.tar.gz
YetAnotherConfigLib-d75d72f4e19ab57e745f21aac8e99d5246d04317.tar.bz2
YetAnotherConfigLib-d75d72f4e19ab57e745f21aac8e99d5246d04317.zip
Reimplement custom ButtonOption text.
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/api')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java5
1 files changed, 5 insertions, 0 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
index 943f9ac..4f53dd4 100644
--- a/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java
+++ b/common/src/main/java/dev/isxander/yacl3/api/ButtonOption.java
@@ -26,6 +26,11 @@ public interface ButtonOption extends Option<BiConsumer<YACLScreen, ButtonOption
*/
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);