From f01846879e226b932d81fa842e4eee4567f0a28c Mon Sep 17 00:00:00 2001 From: inglettronald Date: Fri, 30 Jun 2023 03:54:41 -0500 Subject: Moved Chat event stuff to its own package --- src/main/kotlin/com/dulkirfabric/events/ChatReceivedEvent.kt | 7 ------- src/main/kotlin/com/dulkirfabric/events/OverlayReceivedEvent.kt | 5 ----- src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt | 7 +++++++ src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt | 7 +++++++ .../kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt | 5 +++++ src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt | 2 +- 6 files changed, 20 insertions(+), 13 deletions(-) delete mode 100644 src/main/kotlin/com/dulkirfabric/events/ChatReceivedEvent.kt delete mode 100644 src/main/kotlin/com/dulkirfabric/events/OverlayReceivedEvent.kt create mode 100644 src/main/kotlin/com/dulkirfabric/events/chat/ChatReceivedEvent.kt create mode 100644 src/main/kotlin/com/dulkirfabric/events/chat/ModifyCommandEvent.kt create mode 100644 src/main/kotlin/com/dulkirfabric/events/chat/OverlayReceivedEvent.kt (limited to 'src/main') diff --git a/src/main/kotlin/com/dulkirfabric/events/ChatReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/ChatReceivedEvent.kt deleted file mode 100644 index 9f8430d..0000000 --- a/src/main/kotlin/com/dulkirfabric/events/ChatReceivedEvent.kt +++ /dev/null @@ -1,7 +0,0 @@ -package com.dulkirfabric.events - -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/OverlayReceivedEvent.kt b/src/main/kotlin/com/dulkirfabric/events/OverlayReceivedEvent.kt deleted file mode 100644 index d97dda1..0000000 --- a/src/main/kotlin/com/dulkirfabric/events/OverlayReceivedEvent.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.dulkirfabric.events - -import com.dulkirfabric.events.base.CancellableEvent - -data class OverlayReceivedEvent(val message: String): CancellableEvent() 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() diff --git a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt index 52224ff..c000010 100644 --- a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt +++ b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt @@ -1,7 +1,7 @@ package com.dulkirfabric.features.chat import com.dulkirfabric.config.DulkirConfig -import com.dulkirfabric.events.ChatReceivedEvent +import com.dulkirfabric.events.chat.ChatReceivedEvent import com.dulkirfabric.events.PlaySoundEvent import com.dulkirfabric.util.TextUtils import com.dulkirfabric.util.TextUtils.unformattedString -- cgit