Package de.kentoj.kencommandapi.api
Interface CommandNode<T>
- All Known Implementing Classes:
CommandNodeImpl
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> voidsetDescription(@Nullable String description) voidsetExecutor(@Nullable CommandExecutor<T> executor) voidsetPermission(@Nullable String permission)
-
Method Details
-
node
-
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
-