Package net.runelite.api
Interface MessageNode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getId()
Get the id for this message nodeString
getName()
Gets the name of the player that sent the message.String
getRuneLiteFormatMessage()
Gets the overriden message format.String
getSender()
Gets the sender of the message.int
getTimestamp()
Get the timestamp for the message, in seconds from the unix epoch.ChatMessageType
getType()
Gets the type of message.String
getValue()
Gets the message contents.void
setName(String name)
Sets the name of the player that sent the message.void
setRuneLiteFormatMessage(String runeLiteFormatMessage)
Sets the overriden message format.void
setSender(String sender)
Sets the sender of the message.void
setTimestamp(int timestamp)
Set the timestamp of the messagevoid
setValue(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
-
-
-