public interface CommandCallback
Interface that defines callback functions needed by commands.
| Method Summary | |
|---|---|
void |
accountCreate(java.lang.String login,
java.lang.String password)
Creates an account. |
void |
accountCreateCharacter(java.lang.String login)
Creates a character. |
void |
accountLink(int force,
java.lang.String login,
java.lang.String password)
Links a character to the current account. |
void |
accountLogin(java.lang.String login,
java.lang.String password)
Login to an account. |
void |
accountPlayCharacter(java.lang.String name)
Plays a character from the current account. |
void |
activateCommandInput(java.lang.String newText)
Activates the command input text field. |
void |
closeDialog(Gui dialog)
Closes a dialog. |
boolean |
createKeyBinding(boolean perCharacter,
CommandList commandList)
Adds a key binding. |
CommandList |
getCommandList(java.lang.String args)
Returns a command list. |
void |
openDialog(Gui dialog)
Opens a dialog. |
void |
quitApplication()
Terminates the application. |
boolean |
removeKeyBinding(boolean perCharacter)
Removes a key binding. |
void |
toggleDialog(Gui dialog)
Toggles a dialog. |
void |
updatePlayerName(java.lang.String playerName)
Sets the current player name. |
| Method Detail |
|---|
void accountCreate(@NotNull
java.lang.String login,
@NotNull
java.lang.String password)
login - the account's namepassword - the account's password
void accountCreateCharacter(@NotNull
java.lang.String login)
accountLogin(java.lang.String, java.lang.String) or accountCreate(java.lang.String, java.lang.String).
login - the character's name
void accountLink(int force,
@NotNull
java.lang.String login,
@NotNull
java.lang.String password)
force - 0 to allow failure, 1 to force in certain situationslogin - the character's namepassword - the character's password
void accountLogin(@NotNull
java.lang.String login,
@NotNull
java.lang.String password)
login - loginpassword - password
void accountPlayCharacter(@NotNull
java.lang.String name)
name - the character's name
void activateCommandInput(@NotNull
java.lang.String newText)
newText - the new command text if non-null
void closeDialog(@NotNull
Gui dialog)
dialog - the dialog to close
boolean createKeyBinding(boolean perCharacter,
@NotNull
CommandList commandList)
perCharacter - whether a per-character key binding should be addedcommandList - the command list to execute on key press
@NotNull
CommandList getCommandList(@NotNull
java.lang.String args)
throws NoSuchCommandException
args - the command list arguments
NoSuchCommandException - if the command list does not exist
void openDialog(@NotNull
Gui dialog)
dialog - the dialog to openvoid quitApplication()
boolean removeKeyBinding(boolean perCharacter)
perCharacter - whether a per-character key binding should be
removed
void toggleDialog(@NotNull
Gui dialog)
dialog - the dialog to toggle
void updatePlayerName(@NotNull
java.lang.String playerName)
playerName - the player name