aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/events/SoundReceiveEvent.kt
blob: d1b85b628f8cd20d83532c172b07b7308867c6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>()
}