Interface ChatLineBuffer


  • public interface ChatLineBuffer
    Represents the buffer containing all messages in the chatbox.
    • Method Detail

      • getLines

        MessageNode[] getLines()
        Gets an array of message nodes currently in the chatbox.
        Returns:
        messages in the chatbox
      • getLength

        int getLength()
        Gets the length of the getLines() array.
        Returns:
        the length
      • removeMessageNode

        void removeMessageNode​(MessageNode node)
        Removes a message node. This method modifies the underlying MessageNode array. If removing multiple MessageNodes at a time, clone the original getLines() array; as items in the array will get modified and be left in an inconsistent state.
        Parameters:
        node - the MessageNode to remove