Package de.kentoj.kencommandapi.api.node
Interface CommandNode<T>
- All Known Subinterfaces:
RootCommandNode<T>
- All Known Implementing Classes:
CommandNodeImpl,RootCommandNodeImpl
public interface CommandNode<T>
-
Method Summary
Modifier and TypeMethodDescription<V> voidaddArgument(CommandArgument<T, V> argument) voidaddLiteral(@NotNull CommandNode<T> commandNode) List<CommandArgument<T, ?>> @Nullable String@Nullable CommandExecutor<T> @Nullable CommandNode<T> getLiteral(@NotNull String name) @NotNull Set<CommandNode<T>> @NotNull String[]getNames()@Nullable Stringstatic <T> CommandNode<T> static <T> RootCommandNode<T> rootNode(MessageStyle messageStyle, String... name) voidsetDescription(@Nullable String description) voidsetExecutor(@Nullable CommandExecutor<T> executor) voidsetPermission(@Nullable String permission)
-
Method Details
-
node
-
rootNode
-
getNames
-
setDescription
-
getDescription
-
addArgument
- Throws:
IllegalArgumentException- if there is already an argument with the same idIllegalStateException- if a greedy argument was added to the node previously
-
getArguments
List<CommandArgument<T,?>> getArguments() -
setExecutor
-
getExecutor
-
addLiteral
- Throws:
IllegalArgumentException- if there is already a literal with the same nameIllegalStateException- if a greedy argument was added to the node previously
-
getLiteral
-
getLiterals
-
getPermission
-
setPermission
-