Uses of Class
dev.despical.commandframework.CommandArguments
Packages that use CommandArguments
Package
Description
The main package of the Command Framework containing all
core classes and components related to the framework.
-
Uses of CommandArguments in dev.despical.commandframework
Methods in dev.despical.commandframework with type parameters of type CommandArgumentsModifier and TypeMethodDescriptionfinal <T extends CommandArguments>
voidCommandFramework.setDefaultArguments(@NotNull Class<T> argumentsClass) Sets the default command arguments class that will be created for each command execution and completion.final <T extends CommandArguments>
voidCommandFramework.setDefaultArguments(@NotNull Function<CommandArguments, T> argumentsFactory) Sets the default command arguments factory that will be used for each command execution and completion.Method parameters in dev.despical.commandframework with type arguments of type CommandArgumentsModifier and TypeMethodDescriptionfinal <T> voidCommandFramework.addCustomParameter(@NotNull Class<T> clazz, @NotNull Function<CommandArguments, T> function) Adds a custom parameter to the parameter handler using a class type.final <A,B extends A>
voidCommandFramework.addCustomParameter(@NotNull String value, @NotNull Function<CommandArguments, B> function) Adds a custom parameter to the parameter handler.final <T extends CommandArguments>
voidCommandFramework.setDefaultArguments(@NotNull Function<CommandArguments, T> argumentsFactory) Sets the default command arguments factory that will be used for each command execution and completion.voidCommandErrorMessage.setHandler(@NotNull BiFunction<Command, CommandArguments, Boolean> handler) Constructors in dev.despical.commandframework with parameters of type CommandArgumentsModifierConstructorDescriptionCommandArguments(@NotNull CommandArguments arguments) Creates a copy of the provided command arguments.CompleterHelper(CommandArguments arguments)