aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/ProcessChatEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/events/ProcessChatEvent.kt')
-rw-r--r--src/main/kotlin/events/ProcessChatEvent.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/events/ProcessChatEvent.kt b/src/main/kotlin/events/ProcessChatEvent.kt
index 76c0b27..a276951 100644
--- a/src/main/kotlin/events/ProcessChatEvent.kt
+++ b/src/main/kotlin/events/ProcessChatEvent.kt
@@ -2,14 +2,14 @@
package moe.nea.firmament.events
-import net.minecraft.text.Text
+import net.minecraft.network.chat.Component
import moe.nea.firmament.util.unformattedString
/**
* Behaves like [AllowChatEvent], but is triggered even when cancelled by other mods. Intended for data collection.
* Make sure to subscribe to cancellable events as well when using.
*/
-data class ProcessChatEvent(val text: Text, val wasExternallyCancelled: Boolean) : FirmamentEvent.Cancellable() {
+data class ProcessChatEvent(val text: Component, val wasExternallyCancelled: Boolean) : FirmamentEvent.Cancellable() {
val unformattedString = text.unformattedString
val nameHeuristic: String? = run {