public abstract class CommandTreeBase extends CommandBase
E.g. /team settings set [value] settings is subcommand of team and set is subcommand of settings
CommandBase.CoordinateArg| Constructor and Description |
|---|
CommandTreeBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubcommand(ICommand c) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.util.Map<java.lang.String,ICommand> |
getCommandMap() |
java.util.List<ICommand> |
getSortedCommandList() |
java.util.Collection<ICommand> |
getSubCommands() |
java.util.List<java.lang.String> |
getTabCompletionOptions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos pos) |
boolean |
isUsernameIndex(java.lang.String[] args,
int index) |
buildString, checkPermission, compareTo, doesStringStartWith, entityToNBT, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandAliases, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getRequiredPermissionLevel, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandName, getCommandUsagepublic void addSubcommand(ICommand c)
public java.util.Collection<ICommand> getSubCommands()
public java.util.Map<java.lang.String,ICommand> getCommandMap()
public java.util.List<ICommand> getSortedCommandList()
public java.util.List<java.lang.String> getTabCompletionOptions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos pos)
getTabCompletionOptions in interface ICommandgetTabCompletionOptions in class CommandBasepublic boolean isUsernameIndex(java.lang.String[] args,
int index)
isUsernameIndex in interface ICommandisUsernameIndex in class CommandBasepublic void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException