aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/events')
-rw-r--r--src/main/kotlin/moe/nea/firmament/events/SoundReceiveEvent.kt23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/events/SoundReceiveEvent.kt b/src/main/kotlin/moe/nea/firmament/events/SoundReceiveEvent.kt
new file mode 100644
index 0000000..45b3982
--- /dev/null
+++ b/src/main/kotlin/moe/nea/firmament/events/SoundReceiveEvent.kt
@@ -0,0 +1,23 @@
+/*
+ * SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+package moe.nea.firmament.events
+
+import net.minecraft.registry.entry.RegistryEntry
+import net.minecraft.sound.SoundCategory
+import net.minecraft.sound.SoundEvent
+import net.minecraft.util.math.Vec3d
+
+data class SoundReceiveEvent(
+ val sound: RegistryEntry<SoundEvent>,
+ val category: SoundCategory,
+ val position: Vec3d,
+ val pitch: Float,
+ val volume: Float,
+ val seed: Long
+) : FirmamentEvent.Cancellable() {
+ companion object : FirmamentEventBus<SoundReceiveEvent>()
+}