aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/api
diff options
context:
space:
mode:
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.