Package org.core.command.argument
Interface CommandArgument<T>
- Type Parameters:
T
- The class type that the command argument will return.
- All Superinterfaces:
ParseCommandArgument<T>
,SuggestCommandArgument<T>
- All Known Implementing Classes:
AnyArgument
,BlockGroupArgument
,BlockPositionArgument
,BlockTypeArgument
,BlockTypesArgument
,BooleanArgument
,DoubleArgument
,EnumArgument
,ExactArgument
,ExactPositionArgument
,FlatRemainingArgument
,FloatArgument
,IdentifiableArgument
,IntegerArgument
,LivePlayerArgument
,MappedArgumentWrapper
,OptionalArgument
,PermissionOrArgument
,PositionArgument
,RemainingArgument
,SourceOrLivePlayerArgument
,StringArgument
,StringParserArgument
,SuggestionArgument
,UserArgument
,Vector3Argument
,Vector3DoubleArgument
,Vector3IntegerArgument
,WorldArgument
A argument for
ArgumentCommand
. This is designed to parse the target string argument(s) into a single object
for ease of use.-
Method Summary
Methods inherited from interface org.core.command.argument.ParseCommandArgument
parse
Methods inherited from interface org.core.command.argument.SuggestCommandArgument
errorMessage, suggest
-
Method Details
-
getId
String getId()Gets the ID of the command argument. A command argument id needs to be unique within the command, the ID is what separates the arguments. There isn't a standard message structure, however by default the id will be what shows in the usage- Returns:
- a string Id
-
getUsage
Gets the usage of the argument- Returns:
- a string version of the usage of the argument
-