api: add MessageNode and timestamp to ChatMessage event

This commit is contained in:
Adam
2019-02-05 09:20:15 -05:00
parent 921d2d31d6
commit d7e605f051
2 changed files with 19 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ package net.runelite.api.events;
import lombok.AllArgsConstructor;
import lombok.Data;
import net.runelite.api.ChatMessageType;
import net.runelite.api.MessageNode;
/**
* An event where a new chat message is received.
@@ -40,6 +41,10 @@ import net.runelite.api.ChatMessageType;
@AllArgsConstructor
public class ChatMessage
{
/**
* The underlying MessageNode for the message.
*/
private MessageNode messageNode;
/**
* The type of message received.
*/
@@ -59,4 +64,8 @@ public class ChatMessage
* current name of the clan chat the client is in.
*/
private String sender;
/**
* Timestamp of the message.
*/
private int timestamp;
}