Package | Description |
---|---|
io.github.bananapuncher714.cartographer.core.api.command |
Classes for building complex command trees.
|
io.github.bananapuncher714.cartographer.core.command |
Contains main Cartographer2 commands.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<SubCommand> |
SubCommand.subCommands |
Modifier and Type | Method and Description |
---|---|
SubCommand |
SubCommand.add(SubCommand builder) |
SubCommand |
SubCommand.addSenderValidator(SenderValidator validator) |
SubCommand |
SubCommand.applyTo(org.bukkit.command.PluginCommand command) |
SubCommand |
SubCommand.defaultTo(CommandExecutable executable)
Ran when there are no arguments provided, or if the executable for when unknown is not set.
|
SubCommand |
SubCommand.whenUnknown(CommandExecutable executable)
Ran when the arguments provided don't match any SubCommands registered.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SubCommand> |
SubCommand.getSubCommands() |
Modifier and Type | Method and Description |
---|---|
SubCommand |
SubCommand.add(SubCommand builder) |
CommandBase |
CommandBase.setSubCommand(SubCommand subCommand) |
Modifier and Type | Method and Description |
---|---|
protected SubCommand |
CommandSettings.getCommand() |
protected SubCommand |
CommandModule.getCommand() |