Interface MessageNode

  • All Superinterfaces:
    Node

    public interface MessageNode
    extends Node
    Represents a message in the chatbox.
    • 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 -