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

import net.minecraft.text.Text
import moe.nea.firmament.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
}