Class LiteralBuilder<T>
java.lang.Object
de.kentoj.kencommandapi.api.literal.LiteralBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptionasRootLiteral(MessageStyle messageStyle) build()withArgument(CommandArgumentSpec<T, ?> argument) withDescription(@Nullable String description) withExecutor(@Nullable CommandExecutor<T> executor) withLiteral(Literal<T> literal) withPermission(@Nullable String permission) withSyncExecutor(@Nullable SyncCommandExecutor<T> executor)
-
Method Details
-
withDescription
- Parameters:
description- what the literal does
-
withExecutor
-
withSyncExecutor
-
withPermission
-
withArgument
- Throws:
IllegalArgumentException- if there is already an argument with the same idIllegalStateException- if a greedy argument was added to the literal previously
-
withLiteral
- Throws:
IllegalArgumentException- if there is already a literal with the same nameIllegalStateException- if a greedy argument was added to the literal previously
-
asRootLiteral
-
build
-