aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/events/chat
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-23 21:47:02 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-23 21:47:02 -0500
commitc56059b6c9d28d17d82de090c5a0b9d9382cb82c (patch)
treeaa1f6b2c4798502c6f2ccafff788eb04f17c8379 /src/main/kotlin/com/dulkirfabric/events/chat
parentc36dd88ff83ff09d5941d6772b5eefff0cd10665 (diff)
downloadDulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.tar.gz
DulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.tar.bz2
DulkirMod-Fabric-c56059b6c9d28d17d82de090c5a0b9d9382cb82c.zip
Chat stacking with lots of refactor
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/events/chat')
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt14
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt7
2 files changed, 14 insertions, 7 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt
new file mode 100644
index 0000000..2f57085
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt
@@ -0,0 +1,14 @@
+package com.dulkirfabric.events.chat
+
+import com.dulkirfabric.events.base.CancellableEvent
+import com.dulkirfabric.events.base.ModifyTextEvent
+import net.minecraft.text.Text
+
+class ChatEvents {
+ data class
+ AllowChat(val message: Text) : CancellableEvent()
+
+ data class
+ ModifyChat(val message: Text): ModifyTextEvent(message)
+
+} \ No newline at end of file
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
deleted file mode 100644
index 4c268ab..0000000
--- a/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-package com.dulkirfabric.events.chat
-
-import com.dulkirfabric.events.base.CancellableEvent
-import net.minecraft.text.Text
-
-data class
-ChatReceivedEvent(val message: Text): CancellableEvent() \ No newline at end of file