aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/ScreenChangeEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/events/ScreenChangeEvent.kt')
-rw-r--r--src/main/kotlin/events/ScreenChangeEvent.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/kotlin/events/ScreenChangeEvent.kt b/src/main/kotlin/events/ScreenChangeEvent.kt
new file mode 100644
index 0000000..489e487
--- /dev/null
+++ b/src/main/kotlin/events/ScreenChangeEvent.kt
@@ -0,0 +1,10 @@
+
+
+package moe.nea.firmament.events
+
+import net.minecraft.client.gui.screen.Screen
+
+data class ScreenChangeEvent(val old: Screen?, val new: Screen?) : FirmamentEvent.Cancellable() {
+ var overrideScreen: Screen? = null
+ companion object : FirmamentEventBus<ScreenChangeEvent>()
+}