public class CommandHelp extends CommandBase
CommandBase.CoordinateArg
Modifier and Type | Field and Description |
---|---|
private java.util.Random |
rand |
private static java.lang.String[] |
SEARGE_SAYS |
Constructor and Description |
---|
CommandHelp() |
Modifier and Type | Method and Description |
---|---|
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.util.List<java.lang.String> |
getAliases() |
protected java.util.Map<java.lang.String,ICommand> |
getCommandMap(MinecraftServer server) |
java.lang.String |
getName() |
int |
getRequiredPermissionLevel() |
protected java.util.List<ICommand> |
getSortedPossibleCommands(ICommandSender sender,
MinecraftServer server) |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
java.lang.String |
getUsage(ICommandSender sender) |
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
private static final java.lang.String[] SEARGE_SAYS
private final java.util.Random rand
public java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public java.lang.String getUsage(ICommandSender sender)
public java.util.List<java.lang.String> getAliases()
getAliases
in interface ICommand
getAliases
in class CommandBase
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
protected java.util.List<ICommand> getSortedPossibleCommands(ICommandSender sender, MinecraftServer server)
protected java.util.Map<java.lang.String,ICommand> getCommandMap(MinecraftServer server)
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase