public class ClientReceiveServerMessageEventBase extends ActorEventBase<Actor> implements ClientReceiveServerMessageEvent
Constructor and Description |
---|
ClientReceiveServerMessageEventBase(@NonNull Client client,
@NonNull ServerMessage serverMessage,
@NonNull Actor server,
@NonNull String command,
@NonNull List<String> parameters)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull String |
getCommand()
Gets the command sent.
|
@NonNull List<MessageTag> |
getMessageTags()
Gets the message tags.
|
@NonNull List<String> |
getParameters()
Gets the subsequent parameters after the command.
|
@NonNull String |
getRawMessage()
Gets the unprocessed message received by the server.
|
@NonNull ServerMessage |
getServerMessage()
Gets the server message received.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getActor
getSource, getTag, getTag, getTags
getClient
public ClientReceiveServerMessageEventBase(@NonNull Client client, @NonNull ServerMessage serverMessage, @NonNull Actor server, @NonNull String command, @NonNull List<String> parameters)
client
- clientserverMessage
- server messageserver
- servercommand
- commandparameters
- parameterspublic @NonNull List<String> getParameters()
ClientReceiveServerMessageEvent
getParameters
in interface ClientReceiveServerMessageEvent
public @NonNull String getCommand()
ClientReceiveServerMessageEvent
getCommand
in interface ClientReceiveServerMessageEvent
public @NonNull List<MessageTag> getMessageTags()
ClientReceiveServerMessageEvent
getMessageTags
in interface ClientReceiveServerMessageEvent
public @NonNull String getRawMessage()
ClientReceiveServerMessageEvent
getRawMessage
in interface ClientReceiveServerMessageEvent
public @NonNull ServerMessage getServerMessage()
ClientReceiveServerMessageEvent
getServerMessage
in interface ClientReceiveServerMessageEvent
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorEventBase<Actor>
Copyright © 2013–2021 Kitteh. All rights reserved.