aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/sky/events
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-04-19 12:59:35 +0200
committernea <nea@nea.moe>2023-04-19 12:59:58 +0200
commitf752e32b24f066547d065a6df9d73d4af753884f (patch)
treef111fcd62c8647556aec906935b6a39273d70925 /src/main/kotlin/moe/nea/sky/events
parent72d3ebd3f16b0ae164d005abcfacc47be6c3674b (diff)
downloadneuhax-f752e32b24f066547d065a6df9d73d4af753884f.tar.gz
neuhax-f752e32b24f066547d065a6df9d73d4af753884f.tar.bz2
neuhax-f752e32b24f066547d065a6df9d73d4af753884f.zip
Add Yaw Snapping Keybinding
Diffstat (limited to 'src/main/kotlin/moe/nea/sky/events')
-rw-r--r--src/main/kotlin/moe/nea/sky/events/YawRotateEvent.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/sky/events/YawRotateEvent.kt b/src/main/kotlin/moe/nea/sky/events/YawRotateEvent.kt
new file mode 100644
index 0000000..b724ce1
--- /dev/null
+++ b/src/main/kotlin/moe/nea/sky/events/YawRotateEvent.kt
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2023 Linnea Gräf
+ *
+ * This file is part of NEUHax.
+ *
+ * NEUHax is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ * NEUHax is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ * You should have received a copy of the GNU General Public License along with NEUHax. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+package moe.nea.sky.events
+
+import net.minecraftforge.fml.common.eventhandler.Cancelable
+import net.minecraftforge.fml.common.eventhandler.Event
+
+@Cancelable
+data class YawRotateEvent(val yawDelta: Float, val oldYaw: Float) : Event()