public class UserMessage extends ChatMessage
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
byte |
mode
The mode of the message.
|
Name |
speaker
The user that the message came from.
|
bundle, localtype, message, timestamp| Constructor and Description |
|---|
UserMessage(Name speaker,
String bundle,
String message,
byte mode)
Construct a user message.
|
| Modifier and Type | Method and Description |
|---|---|
static UserMessage |
create(Name speaker,
String message)
Constructs a user message for a player originated tell (which has no bundle and is in the
default mode).
|
String |
getFormat()
Get the appropriate message format for this message.
|
Name |
getSpeakerDisplayName()
Returns the name to display for the speaker.
|
setClientInfo, toStringpublic Name speaker
public byte mode
public static UserMessage create(Name speaker, String message)
public Name getSpeakerDisplayName()
public String getFormat()
ChatMessagegetFormat in class ChatMessageCopyright © 2015. All rights reserved.