diff options
author | inglettronald <inglettronald@gmail.com> | 2023-06-09 18:38:24 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-06-09 18:38:24 -0500 |
commit | 480f3cc93b3b77aa53225b3d65a5eb30de81bc30 (patch) | |
tree | 143020f565a3d28fac9d8f766aa8b59f032fa14c /src/main/kotlin/com/dulkirfabric/events | |
parent | c0eb625a9b937bcb9256e98afb80d32443daa795 (diff) | |
download | DulkirMod-Fabric-480f3cc93b3b77aa53225b3d65a5eb30de81bc30.tar.gz DulkirMod-Fabric-480f3cc93b3b77aa53225b3d65a5eb30de81bc30.tar.bz2 DulkirMod-Fabric-480f3cc93b3b77aa53225b3d65a5eb30de81bc30.zip |
Some event stuff
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/events')
3 files changed, 9 insertions, 2 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/events/InventoryKeyPressEvent.kt b/src/main/kotlin/com/dulkirfabric/events/InventoryKeyPressEvent.kt index f4f9e13..6ba0667 100644 --- a/src/main/kotlin/com/dulkirfabric/events/InventoryKeyPressEvent.kt +++ b/src/main/kotlin/com/dulkirfabric/events/InventoryKeyPressEvent.kt @@ -2,4 +2,5 @@ package com.dulkirfabric.events import com.dulkirfabric.events.base.CancellableEvent -data class InventoryKeyPressEvent(val keyCode: Int, val scanCode: Int, val modifiers: Int): CancellableEvent()
\ No newline at end of file +data class +InventoryKeyPressEvent(val keyCode: Int, val scanCode: Int, val modifiers: Int): CancellableEvent()
\ No newline at end of file diff --git a/src/main/kotlin/com/dulkirfabric/events/WorldKeyPressEvent.kt b/src/main/kotlin/com/dulkirfabric/events/WorldKeyPressEvent.kt new file mode 100644 index 0000000..2e6545b --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/events/WorldKeyPressEvent.kt @@ -0,0 +1,6 @@ +package com.dulkirfabric.events + +import com.dulkirfabric.events.base.Event + +data class +WorldKeyPressEvent(val key: Int, val scancode: Int, val modifiers: Int): Event()
\ No newline at end of file diff --git a/src/main/kotlin/com/dulkirfabric/events/base/CancellableEvent.kt b/src/main/kotlin/com/dulkirfabric/events/base/CancellableEvent.kt index 1c1ddcd..09027ed 100644 --- a/src/main/kotlin/com/dulkirfabric/events/base/CancellableEvent.kt +++ b/src/main/kotlin/com/dulkirfabric/events/base/CancellableEvent.kt @@ -4,7 +4,7 @@ import com.dulkirfabric.DulkirModFabric import meteordevelopment.orbit.ICancellable abstract class CancellableEvent: ICancellable { - + @JvmField var cancelled: Boolean = false override fun isCancelled(): Boolean { |