Package me.hackware.api.command
Class Command
java.lang.Object
me.hackware.api.command.Command
Abstract base class for all hackware commands.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidFailure: redTextIcons.Icon.WARNING, message red too.abstract voidExecute this command with the given arguments.getName()getSuggestions(String[] args) Return tab-completion suggestions for the given partial arguments.getUsage()protected voidInformational: aquaTextIcons.Icon.INFO.protected voidprint(TextIcons.Icon icon, net.minecraft.ChatFormatting iconColor, String message) Sendsmessagebehind an[icon]prefix, with the icon tinted.protected voidusage()Print command usage.protected voidAdvisory: yellowTextIcons.Icon.WARNING.
-
Constructor Details
-
Command
-
-
Method Details
-
getName
-
getDescription
-
getUsage
-
execute
Execute this command with the given arguments.- Parameters:
args- arguments after the command name, split by whitespace
-
getSuggestions
Return tab-completion suggestions for the given partial arguments.- Parameters:
args- the current arguments (may be empty or partial)- Returns:
- list of suggestion strings
-
print
Sendsmessagebehind an[icon]prefix, with the icon tinted. -
info
Informational: aquaTextIcons.Icon.INFO. -
warn
Advisory: yellowTextIcons.Icon.WARNING. -
error
Failure: redTextIcons.Icon.WARNING, message red too. Use for bad usage and failures. -
usage
protected void usage()Print command usage.
-