From c56059b6c9d28d17d82de090c5a0b9d9382cb82c Mon Sep 17 00:00:00 2001 From: inglettronald Date: Sun, 23 Jul 2023 21:47:02 -0500 Subject: Chat stacking with lots of refactor --- src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt | 14 ++++++++++++++ .../com/dulkirfabric/events/chat/ChatReceivedEvent.kt | 7 ------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 src/main/kotlin/com/dulkirfabric/events/chat/ChatEvents.kt delete mode 100644 src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt (limited to 'src/main/kotlin/com/dulkirfabric/events/chat') 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 -- cgit