public abstract class Command extends Object implements ClientLinked
Modifier | Constructor and Description |
---|---|
protected |
Command(Client client)
Constructs the command.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
execute()
Executes the command.
|
Client |
getClient()
Gets the client on which this command will be run.
|
String |
toString() |
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
protected Command(@Nonnull Client client)
client
- the clientIllegalArgumentException
- if client is null@Nonnull public Client getClient()
getClient
in interface ClientLinked
public abstract void execute()
@Nonnull protected ToStringer toStringer()
ToStringer
for the command.Copyright © 2013–2019 Kitteh. All rights reserved.