aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
diff options
context:
space:
mode:
authorObsidian <108832807+Obsidianninja11@users.noreply.github.com>2023-10-11 01:07:24 -0800
committerGitHub <noreply@github.com>2023-10-11 11:07:24 +0200
commit72e03947031b49135dc6a4cc97ef6b79c05def76 (patch)
treea188b993c052bc58d90420cd140331bd388a7929 /src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
parentc896c6872d5ccb2b0d28eb666f944c4c63f107a7 (diff)
downloadskyhanni-72e03947031b49135dc6a4cc97ef6b79c05def76.tar.gz
skyhanni-72e03947031b49135dc6a4cc97ef6b79c05def76.tar.bz2
skyhanni-72e03947031b49135dc6a4cc97ef6b79c05def76.zip
Feature: Composter Getfromsacks (#475)
composter allows bz + sacks #475
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
index 64f10d514..5e0e50d3f 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
@@ -9,6 +9,7 @@ import net.minecraft.util.ResourceLocation
object SoundUtils {
private val beepSound by lazy { createSound("random.orb", 1f) }
private val clickSound by lazy { createSound("gui.button.press", 1f) }
+ private val errorSound by lazy {createSound("mob.endermen.portal", 0f)}
val centuryActiveTimerAlert by lazy { createSound("skyhanni:centurytimer.active", 1f) }
fun ISound.playSound() {
@@ -54,4 +55,8 @@ object SoundUtils {
fun playClickSound() {
clickSound.playSound()
}
+
+ fun playErrorSound() {
+ errorSound.playSound()
+ }
} \ No newline at end of file