aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/api
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/main/java/dev/isxander/yacl3/api
parent26aec79e10025ff3427ceb47602156ebd670b2ac (diff)
downloadYetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.tar.gz
YetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.tar.bz2
YetAnotherConfigLib-97bbc5a3d91ed57e55796777bbfc117ff28e2221.zip
Add Kotlin DSL
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/api')
-rw-r--r--src/main/java/dev/isxander/yacl3/api/ConfigCategory.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/dev/isxander/yacl3/api/ConfigCategory.java b/src/main/java/dev/isxander/yacl3/api/ConfigCategory.java
index b3d68fc..41f3ca9 100644
--- a/src/main/java/dev/isxander/yacl3/api/ConfigCategory.java
+++ b/src/main/java/dev/isxander/yacl3/api/ConfigCategory.java
@@ -125,6 +125,13 @@ public interface ConfigCategory {
Builder groups(@NotNull Collection<OptionGroup> groups);
/**
+ * Fetches the builder for the root group of the category.
+ * This is the group that has no header and options are added through {@link Builder#option(Option)}.
+ * In its default implementation, this builder is severely limited and a lot of methods are unsupported.
+ */
+ OptionGroup.Builder rootGroupBuilder();
+
+ /**
* Sets the tooltip to be used by the category.
* Can be invoked twice to append more lines.
* No need to wrap the text yourself, the gui does this itself.