Interface Parameter.Subcommand
- All Superinterfaces:
Parameter
- Enclosing interface:
- Parameter
A
Parameter.Subcommand
represents a literal argument where, if parsed, should
indicate to the command processor that the
CommandExecutor
of the command
should change.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.command.parameter.Parameter
Parameter.Factory, Parameter.FirstOfBuilder, Parameter.Key<T>, Parameter.Multi, Parameter.SequenceBuilder, Parameter.Subcommand, Parameter.Value<T>
-
Method Summary
Methods inherited from interface org.spongepowered.api.command.parameter.Parameter
isOptional, isTerminal
-
Method Details
-
command
Command.Parameterized command()The command that is parsed and potentially run when this subcommand is parsed.- Returns:
- The command to run.
-
aliases
The alias for the subcommand.- Returns:
- The subcommand.
-