public interface ServerMessageEvent extends ClientEvent
Modifier and Type | Method and Description |
---|---|
ServerMessage |
getSource()
Gets the server-sent message that caused this event.
|
default Optional<MessageTag> |
getTag(@NonNull String name)
Gets the named tag if present.
|
default <Tag extends MessageTag> |
getTag(@NonNull String name,
@NonNull Class<Tag> clazz)
Gets the named message tag if present and if of the specified type.
|
default @NonNull List<MessageTag> |
getTags()
Gets the tags for this tag message.
|
getClient
ServerMessage getSource()
default @NonNull List<MessageTag> getTags()
default Optional<MessageTag> getTag(@NonNull String name)
name
- tag namedefault <Tag extends MessageTag> @NonNull Optional<Tag> getTag(@NonNull String name, @NonNull Class<Tag> clazz)
Tag
- message tag typename
- message tag nameclazz
- message tag typeCopyright © 2013–2021 Kitteh. All rights reserved.