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, isUsernameIndex
buildString, 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, toSyntaxException
public java.lang.String getName()
public void addSubcommand(ICommand command)
addSubcommand
in class CommandTreeBase
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public boolean checkPermission(MinecraftServer server, ICommandSender sender)
checkPermission
in interface ICommand
checkPermission
in class CommandBase
public java.lang.String getUsage(ICommandSender icommandsender)