-
- All Implemented Interfaces:
public interface Argument<T extends Object, C extends Object>Command arguments. It can be used as a child element of Usage. There is a type in the argument, type analysis is automatically performed when the client inputs, and if it cannot be parsed, the command execution is refused.
-
-
Method Summary
Modifier and Type Method Description abstract Tparse(CommandContext<CommandListenerWrapper> context, String key)abstract StringgetName()Name of argument. abstract ArgumentType<?>getType()Mojang Brigadier argument type. abstract SuggestionAction<C>getSuggestion()Lambda expression for tab completion of its arguments. abstract ContextAction<C>getAction()Argument context action -
-
Method Detail
-
getType
abstract ArgumentType<?> getType()
Mojang Brigadier argument type.
-
getSuggestion
abstract SuggestionAction<C> getSuggestion()
Lambda expression for tab completion of its arguments.
-
getAction
abstract ContextAction<C> getAction()
Argument context action
-
-
-
-