public class ClientCommandHandler extends CommandHandler
Modifier and Type | Field and Description |
---|---|
static ClientCommandHandler |
instance |
java.lang.String[] |
latestAutoComplete |
Constructor and Description |
---|
ClientCommandHandler() |
Modifier and Type | Method and Description |
---|---|
void |
autoComplete(java.lang.String leftOfCursor) |
int |
executeCommand(ICommandSender sender,
java.lang.String message) |
private TextComponentTranslation |
format(TextFormatting color,
java.lang.String str,
java.lang.Object... args) |
protected MinecraftServer |
getServer() |
getCommands, getPossibleCommands, getTabCompletions, registerCommand, tryExecute
public static final ClientCommandHandler instance
public java.lang.String[] latestAutoComplete
public int executeCommand(ICommandSender sender, java.lang.String message)
executeCommand
in interface ICommandManager
executeCommand
in class CommandHandler
private TextComponentTranslation format(TextFormatting color, java.lang.String str, java.lang.Object... args)
public void autoComplete(java.lang.String leftOfCursor)
protected MinecraftServer getServer()
getServer
in class CommandHandler