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