From 97bbc5a3d91ed57e55796777bbfc117ff28e2221 Mon Sep 17 00:00:00 2001 From: isXander Date: Sun, 14 Apr 2024 23:19:21 +0100 Subject: Add Kotlin DSL --- src/main/java/dev/isxander/yacl3/api/ConfigCategory.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/dev/isxander/yacl3/api') 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 @@ -124,6 +124,13 @@ public interface ConfigCategory { */ Builder groups(@NotNull Collection 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. -- cgit