public interface ServerMessage
| Modifier and Type | Interface and Description | 
|---|---|
static interface  | 
ServerMessage.NumericCommandServerMessage
Represents a message with a numeric command. 
 | 
static interface  | 
ServerMessage.StringCommandServerMessage
Represents a message with a String command. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
@NonNull String | 
getMessage()
Gets the full content of the line sent by the server, minus linebreak
 characters \r and \n. 
 | 
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. 
 | 
@NonNull List<MessageTag> | 
getTags()
Gets the processed message tags, if any, contained in the message. 
 | 
@NonNull String getMessage()
@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.