aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/events/ServerChatLineReceivedEvent.kt
blob: 681ec6c392f4597b174b8c80f60cc95604dde876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package moe.nea.notenoughupdates.events

import net.minecraft.text.Text
import moe.nea.notenoughupdates.util.unformattedString

/**
 * This event gets published whenever the client receives a chat message from the server.
 */
data class ServerChatLineReceivedEvent(val text: Text) : NEUEvent.Cancellable() {
    companion object : NEUEventBus<ServerChatLineReceivedEvent>()

    val unformattedString = text.unformattedString
}