Package net.runelite.api
Interface ChatLineBuffer
-
public interface ChatLineBuffer
Represents the buffer containing all messages in the chatbox.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLength()
Gets the length of thegetLines()
array.MessageNode[]
getLines()
Gets an array of message nodes currently in the chatbox.void
removeMessageNode(MessageNode node)
Removes a message node.
-
-
-
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 thegetLines()
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 originalgetLines()
array; as items in the array will get modified and be left in an inconsistent state.- Parameters:
node
- theMessageNode
to remove
-
-