aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt b/src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt
new file mode 100644
index 0000000..bf008d3
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/events/HudRenderEvent.kt
@@ -0,0 +1,16 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+package moe.nea.firmament.events
+
+import net.minecraft.client.gui.DrawContext
+
+/**
+ * Called when hud elements should be rendered, before the screen, but after the world.
+ */
+data class HudRenderEvent(val context: DrawContext, val tickDelta: Float) : FirmamentEvent() {
+ companion object : FirmamentEventBus<HudRenderEvent>()
+}