A
- actor involvedpublic abstract class ActorPrivateMessageEventBase<A extends Actor> extends ActorMessageEventBase<A> implements PrivateEvent
ActorEvent
,
MessageEvent
,
PrivateEvent
Modifier | Constructor and Description |
---|---|
protected |
ActorPrivateMessageEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
A actor,
@NonNull String target,
@NonNull String message)
Constructs the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull String |
getTarget()
Gets the target of this message.
|
boolean |
isToClient()
Gets if the target of the message is this client.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getMessage
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSource, getTag, getTag, getTags
getClient
protected ActorPrivateMessageEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, A actor, @NonNull String target, @NonNull String message)
client
- the clientsourceMessage
- source messageactor
- the actortarget
- target of the messagemessage
- the messagepublic @NonNull String getTarget()
PrivateEvent
getTarget
in interface PrivateEvent
public boolean isToClient()
PrivateEvent
isToClient
in interface PrivateEvent
annotation to filter only these events
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorMessageEventBase<A extends Actor>
Copyright © 2013–2021 Kitteh. All rights reserved.