Package baritone.api.command.argparser
Interface IArgParser.Stated<T,S>
- All Superinterfaces:
IArgParser<T>
- Enclosing interface:
IArgParser<T>
A stated argument parser is similar to a stateless one. It also takes a
ICommandArgument, but it also
takes a second argument that can be any type, referred to as the state.-
Nested Class Summary
Nested classes/interfaces inherited from interface baritone.api.command.argparser.IArgParser
IArgParser.Stated<T,S>, IArgParser.Stateless<T> -
Method Summary
Methods inherited from interface baritone.api.command.argparser.IArgParser
getTarget
-
Method Details
-
getStateType
Class<S> getStateType() -
parseArg
- Parameters:
arg- The argument to parse.state- Can be anything.- Returns:
- What it was parsed into.
- Throws:
RuntimeException- if you want the parsing to fail. The exception will be caught and turned into an appropriate error.Exception
-