diff options
author | nea <nea@nea.moe> | 2023-09-06 02:26:25 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-06 02:26:25 +0200 |
commit | d29f886e25d7376c6942e7dbe6c305f601e2768d (patch) | |
tree | e2b15ca1cfea28cbcac97333b7fef192f50e2440 /src/main/kotlin/moe/nea/firmament/events | |
parent | 7515c6048c5fcee27af394ace02ba35256d10106 (diff) | |
download | firmament-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.kt | 16 |
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>() +} |