Interface Parameter.Subcommand
-
- All Superinterfaces:
Parameter
- Enclosing interface:
- Parameter
public static interface Parameter.Subcommand extends Parameter
AParameter.Subcommand
represents a literal argument where, if parsed, should indicate to the command processor that theCommandExecutor
of the command should change.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Parameter.Subcommand.Builder
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>
aliases()
The alias for the subcommand.Command.Parameterized
command()
The command that is parsed and potentially run when this subcommand is parsed.-
Methods inherited from interface org.spongepowered.api.command.parameter.Parameter
isOptional, isTerminal
-
-
-
-
Method Detail
-
command
Command.Parameterized command()
The command that is parsed and potentially run when this subcommand is parsed.- Returns:
- The command to run.
-
aliases
java.util.Set<java.lang.String> aliases()
The alias for the subcommand.- Returns:
- The subcommand.
-
-