aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt
blob: acedbc60810cb0ddafae30d3cba98eb6cbd8ece3 (plain)
1
2
3
4
5
6
7
8
9
10
11
package at.hannibal2.skyhanni.events

import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzVec
import net.minecraftforge.fml.common.eventhandler.Cancelable

@Cancelable
class PlaySoundEvent(val soundName: String, val location: LorenzVec, val pitch: Float, val volume: Float) :
    LorenzEvent() {
    val distanceToPlayer by lazy { location.distance(LocationUtils.playerLocation()) }
}