aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/util/Utils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/util/Utils.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/util/Utils.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/util/Utils.kt b/src/main/kotlin/com/dulkirfabric/util/Utils.kt
index ce6665b..ae98cf6 100644
--- a/src/main/kotlin/com/dulkirfabric/util/Utils.kt
+++ b/src/main/kotlin/com/dulkirfabric/util/Utils.kt
@@ -1,7 +1,18 @@
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) {
+ println("Path: ${event.sound.id.path}")
+ println("Pitch: ${event.sound.pitch}")
+ println("Volume: ${event.sound.volume}")
+ }
} \ No newline at end of file