Package org.core.command.argument
Interface ParseCommandArgument<T>
- Type Parameters:
T
- The returning class type
- All Known Subinterfaces:
CommandArgument<T>
- All Known Implementing Classes:
AnyArgument
,BlockGroupArgument
,BlockPositionArgument
,BlockTypeArgument
,BlockTypesArgument
,BooleanArgument
,DoubleArgument
,EnumArgument
,ExactArgument
,ExactPositionArgument
,FlatRemainingArgument
,FloatArgument
,IdentifiableArgument
,IntegerArgument
,LivePlayerArgument
,MappedArgumentWrapper
,OptionalArgument
,OptionalArgument.WrappedParser
,PermissionOrArgument
,PositionArgument
,RemainingArgument
,SourceOrLivePlayerArgument
,StringArgument
,StringParserArgument
,SuggestionArgument
,UserArgument
,Vector3Argument
,Vector3DoubleArgument
,Vector3IntegerArgument
,WorldArgument
public interface ParseCommandArgument<T>
The basic interface for parsing a
CommandArgument
.
Some command arguments require getters for values whereby the getter requires CommandContext
and
CommandArgumentContext
resulting in this function being handy as a lamda-
Method Summary
Modifier and TypeMethodDescriptionparse(CommandContext context, CommandArgumentContext<T> argument)
-
Method Details
-
parse
CommandArgumentResult<T> parse(CommandContext context, CommandArgumentContext<T> argument) throws IOException- Throws:
IOException
-