aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/events/chat
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-06-30 03:54:41 -0500
committeringlettronald <inglettronald@gmail.com>2023-06-30 03:54:41 -0500
commitf01846879e226b932d81fa842e4eee4567f0a28c (patch)
treef192ecb1093c4517a4071b534b345b6dd339e06d /src/main/kotlin/com/dulkirfabric/events/chat
parent903bf5ffb8675e9b907b91d1adadb04d68ef40c3 (diff)
downloadDulkirMod-Fabric-f01846879e226b932d81fa842e4eee4567f0a28c.tar.gz
DulkirMod-Fabric-f01846879e226b932d81fa842e4eee4567f0a28c.tar.bz2
DulkirMod-Fabric-f01846879e226b932d81fa842e4eee4567f0a28c.zip
Moved Chat event stuff to its own package
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/events/chat')
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt7
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt7
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt5
3 files changed, 19 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
new file mode 100644
index 0000000..4c268ab
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt
@@ -0,0 +1,7 @@
+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
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt b/src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt
new file mode 100644
index 0000000..9e3f0d5
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt
@@ -0,0 +1,7 @@
+package com.dulkirfabric.events.chat
+
+import com.dulkirfabric.events.base.Event
+
+data class ModifyCommandEvent (
+ var command: String,
+): Event() \ No newline at end of file
diff --git a/src/main/kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt
new file mode 100644
index 0000000..1e27260
--- /dev/null
+++ b/src/main/kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt
@@ -0,0 +1,5 @@
+package com.dulkirfabric.events.chat
+
+import com.dulkirfabric.events.base.CancellableEvent
+
+data class OverlayReceivedEvent(val message: String): CancellableEvent()