aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/events')
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/InventoryKeyPressEvent.kt3
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/WorldKeyPressEvent.kt6
-rw-r--r--src/main/kotlin/com/dulkirfabric/events/base/CancellableEvent.kt2
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 {