aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl/api/OptionDescription.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl/api/OptionDescription.java')
-rw-r--r--common/src/main/java/dev/isxander/yacl/api/OptionDescription.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/src/main/java/dev/isxander/yacl/api/OptionDescription.java b/common/src/main/java/dev/isxander/yacl/api/OptionDescription.java
index 0b91d5a..c233309 100644
--- a/common/src/main/java/dev/isxander/yacl/api/OptionDescription.java
+++ b/common/src/main/java/dev/isxander/yacl/api/OptionDescription.java
@@ -40,10 +40,12 @@ public interface OptionDescription {
return new OptionDescriptionImpl.BuilderImpl();
}
- static OptionDescription empty() {
- return new OptionDescriptionImpl(CommonComponents.EMPTY, CompletableFuture.completedFuture(Optional.empty()));
+ static OptionDescription of(Component... description) {
+ return createBuilder().description(description).build();
}
+ OptionDescription EMPTY = new OptionDescriptionImpl(CommonComponents.EMPTY, CompletableFuture.completedFuture(Optional.empty()));
+
interface Builder {
/**
* Appends lines to the main description of the option. This can be called multiple times.