blob: 4ceb8c42607760a2e559c25a1ca1cced51d31638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.dulkirfabric.util
import com.dulkirfabric.events.PlaySoundEvent
object Utils {
fun isInSkyblock(): Boolean {
return ScoreBoardUtils.getLines() != null
}
/**
* Prints relevant information about a sound that is being displayed
*/
fun debugSound(event: PlaySoundEvent) {
if (event.sound.id.path == "entity.player.hurt"
&& event.sound.pitch == 0f
&& event.sound.volume == 0f) return
println("Path: ${event.sound.id.path}")
println("Pitch: ${event.sound.pitch}")
println("Volume: ${event.sound.volume}")
}
}
|