public class ForgeCommand extends CommandBase
CommandBase.CoordinateArg
Constructor and Description |
---|
ForgeCommand(MinecraftServer server) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
addTabCompletionOptions(ICommandSender sender,
java.lang.String[] args,
BlockPos pos) |
java.lang.String |
getCommandName()
Gets the name of the command
|
java.lang.String |
getCommandUsage(ICommandSender icommandsender)
Gets the usage string for the command.
|
int |
getRequiredPermissionLevel()
Return the required permission level for this command.
|
void |
processCommand(ICommandSender sender,
java.lang.String[] args)
Callback when the command is invoked
|
buildString, canCommandSenderUseCommand, compareTo, doesStringStartWith, func_175763_c, func_175768_b, func_175771_a, func_181043_b, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandAliases, getCommandSenderAsPlayer, getEntity, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyOperators, notifyOperators, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setAdminCommander
public ForgeCommand(MinecraftServer server)
public java.lang.String getCommandName()
public java.lang.String getCommandUsage(ICommandSender icommandsender)
sender
- The command sender that executed the commandpublic int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public void processCommand(ICommandSender sender, java.lang.String[] args) throws CommandException
sender
- The command sender that executed the commandargs
- The arguments that were passedCommandException
public java.util.List<java.lang.String> addTabCompletionOptions(ICommandSender sender, java.lang.String[] args, BlockPos pos)
addTabCompletionOptions
in interface ICommand
addTabCompletionOptions
in class CommandBase