aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-09-06 02:26:25 +0200
committernea <nea@nea.moe>2023-09-06 02:26:25 +0200
commitd29f886e25d7376c6942e7dbe6c305f601e2768d (patch)
treee2b15ca1cfea28cbcac97333b7fef192f50e2440 /src/main/kotlin/moe/nea/firmament/events
parent7515c6048c5fcee27af394ace02ba35256d10106 (diff)
downloadfirmament-d29f886e25d7376c6942e7dbe6c305f601e2768d.tar.gz
firmament-d29f886e25d7376c6942e7dbe6c305f601e2768d.tar.bz2
firmament-d29f886e25d7376c6942e7dbe6c305f601e2768d.zip
Add auto sprint toggle keybinding
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-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>()
+}