aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/AllowChatEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/events/AllowChatEvent.kt')
-rw-r--r--src/main/kotlin/events/AllowChatEvent.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/events/AllowChatEvent.kt b/src/main/kotlin/events/AllowChatEvent.kt
index 3069843..86395c9 100644
--- a/src/main/kotlin/events/AllowChatEvent.kt
+++ b/src/main/kotlin/events/AllowChatEvent.kt
@@ -2,14 +2,14 @@
package moe.nea.firmament.events
+import net.minecraft.network.chat.Component
import moe.nea.firmament.util.unformattedString
-import net.minecraft.text.Text
/**
* Filter whether the user should see a chat message altogether. May or may not be called for every chat packet sent by
* the server. When that quality is desired, consider [ProcessChatEvent] instead.
*/
-data class AllowChatEvent(val text: Text) : FirmamentEvent.Cancellable() {
+data class AllowChatEvent(val text: Component) : FirmamentEvent.Cancellable() {
val unformattedString = text.unformattedString
companion object : FirmamentEventBus<AllowChatEvent>()