Package net.runelite.api
Interface MessageNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetId()Get the id for this message nodeStringgetName()Gets the name of the player that sent the message.StringgetRuneLiteFormatMessage()Gets the overriden message format.StringgetSender()Gets the sender of the message.intgetTimestamp()Get the timestamp for the message, in seconds from the unix epoch.ChatMessageTypegetType()Gets the type of message.StringgetValue()Gets the message contents.voidsetName(String name)Sets the name of the player that sent the message.voidsetRuneLiteFormatMessage(String runeLiteFormatMessage)Sets the overriden message format.voidsetSender(String sender)Sets the sender of the message.voidsetTimestamp(int timestamp)Set the timestamp of the messagevoidsetValue(String value)Sets the message contents.-
Methods inherited from interface net.runelite.api.Node
getHash, getNext, getPrevious
-
-
-
-
Method Detail
-
getId
int getId()
Get the id for this message node- Returns:
-
getType
ChatMessageType getType()
Gets the type of message.- Returns:
- the message type
-
getName
String getName()
Gets the name of the player that sent the message.- Returns:
- the player name
-
setName
void setName(String name)
Sets the name of the player that sent the message.- Parameters:
name- the new player name
-
getSender
String getSender()
Gets the sender of the message. (ie. friends chat name)- Returns:
- the message sender
-
setSender
void setSender(String sender)
Sets the sender of the message.- Parameters:
sender- the new message sender
-
getValue
String getValue()
Gets the message contents.- Returns:
- the message contents
-
setValue
void setValue(String value)
Sets the message contents.- Parameters:
value- the new message contents
-
getRuneLiteFormatMessage
String getRuneLiteFormatMessage()
Gets the overriden message format.- Returns:
- the message format
-
setRuneLiteFormatMessage
void setRuneLiteFormatMessage(String runeLiteFormatMessage)
Sets the overriden message format.If this value is not null, the message contents as returned by
getValue()will be replaced with the format set here when a message is processed.- Parameters:
runeLiteFormatMessage- the new message format
-
getTimestamp
int getTimestamp()
Get the timestamp for the message, in seconds from the unix epoch.- Returns:
-
setTimestamp
void setTimestamp(int timestamp)
Set the timestamp of the message- Parameters:
timestamp-
-
-