public class ForgeCommand extends CommandTreeBase
CommandBase.CoordinateArg| Constructor and Description |
|---|
ForgeCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubcommand(ICommand command) |
boolean |
checkPermission(MinecraftServer server,
ICommandSender sender)
Check if the given ICommandSender has permission to execute this command
|
java.lang.String |
getName()
Gets the name of the command
|
int |
getRequiredPermissionLevel()
Return the required permission level for this command.
|
java.lang.String |
getUsage(ICommandSender icommandsender)
Gets the usage string for the command.
|
execute, getCommandMap, getSortedCommandList, getSubCommand, getSubCommands, getTabCompletions, isUsernameIndexbuildString, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxExceptionpublic java.lang.String getName()
public void addSubcommand(ICommand command)
addSubcommand in class CommandTreeBasepublic int getRequiredPermissionLevel()
getRequiredPermissionLevel in class CommandBasepublic boolean checkPermission(MinecraftServer server, ICommandSender sender)
checkPermission in interface ICommandcheckPermission in class CommandBasepublic java.lang.String getUsage(ICommandSender icommandsender)