public abstract class SubCommand extends java.lang.Object implements IModCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
SubCommand.PermLevel |
| Constructor and Description |
|---|
SubCommand(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(java.lang.String alias) |
SubCommand |
addChildCommand(SubCommand child) |
java.util.List |
addTabCompletionOptions(net.minecraft.command.ICommandSender sender,
java.lang.String[] text) |
boolean |
canCommandSenderUseCommand(net.minecraft.command.ICommandSender sender) |
int |
compareTo(net.minecraft.command.ICommand command) |
int |
compareTo(java.lang.Object command) |
java.util.SortedSet<SubCommand> |
getChildren() |
java.util.List<java.lang.String> |
getCommandAliases() |
java.lang.String |
getCommandName() |
java.lang.String |
getCommandUsage(net.minecraft.command.ICommandSender sender) |
java.lang.String |
getFullCommandString() |
int |
getRequiredPermissionLevel() |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
void |
printHelp(net.minecraft.command.ICommandSender sender) |
void |
processCommand(net.minecraft.command.ICommandSender sender,
java.lang.String[] args) |
void |
processSubCommand(net.minecraft.command.ICommandSender sender,
java.lang.String[] args) |
SubCommand |
setPermLevel(SubCommand.PermLevel permLevel) |
public final java.lang.String getCommandName()
getCommandName in interface net.minecraft.command.ICommandpublic SubCommand addChildCommand(SubCommand child)
public java.util.SortedSet<SubCommand> getChildren()
getChildren in interface IModCommandpublic void addAlias(java.lang.String alias)
public java.util.List<java.lang.String> getCommandAliases()
getCommandAliases in interface IModCommandgetCommandAliases in interface net.minecraft.command.ICommandpublic java.util.List addTabCompletionOptions(net.minecraft.command.ICommandSender sender,
java.lang.String[] text)
addTabCompletionOptions in interface net.minecraft.command.ICommandpublic final void processCommand(net.minecraft.command.ICommandSender sender,
java.lang.String[] args)
processCommand in interface net.minecraft.command.ICommandpublic void processSubCommand(net.minecraft.command.ICommandSender sender,
java.lang.String[] args)
public SubCommand setPermLevel(SubCommand.PermLevel permLevel)
public final int getRequiredPermissionLevel()
getRequiredPermissionLevel in interface IModCommandpublic boolean canCommandSenderUseCommand(net.minecraft.command.ICommandSender sender)
canCommandSenderUseCommand in interface net.minecraft.command.ICommandpublic boolean isUsernameIndex(java.lang.String[] args,
int index)
isUsernameIndex in interface net.minecraft.command.ICommandpublic java.lang.String getCommandUsage(net.minecraft.command.ICommandSender sender)
getCommandUsage in interface net.minecraft.command.ICommandpublic void printHelp(net.minecraft.command.ICommandSender sender)
printHelp in interface IModCommandpublic java.lang.String getFullCommandString()
getFullCommandString in interface IModCommandpublic int compareTo(net.minecraft.command.ICommand command)
public int compareTo(java.lang.Object command)
compareTo in interface java.lang.Comparable