summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-14 15:55:23 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-14 15:55:23 +0200
commit4d1fcf5b07f14d40b78e25ecf7fd0eabf5733864 (patch)
treeac689388ce9d814e586ee87fdb2620a765e14112 /src/main/java/at/hannibal2/skyhanni/utils
parent18e399281bbfed824bd5eca4faae1985adb3a435 (diff)
downloadskyhanni-4d1fcf5b07f14d40b78e25ecf7fd0eabf5733864.tar.gz
skyhanni-4d1fcf5b07f14d40b78e25ecf7fd0eabf5733864.tar.bz2
skyhanni-4d1fcf5b07f14d40b78e25ecf7fd0eabf5733864.zip
Added Jacob's Contest Warning - Show a warning shortly before a new jacob contest starts.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt6
1 files changed, 6 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 23d3fb603..9eb476666 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
@@ -7,6 +7,8 @@ import net.minecraft.client.audio.SoundCategory
import net.minecraft.util.ResourceLocation
object SoundUtils {
+ private val beepSound by lazy { createSound("random.orb", 1f) }
+
fun ISound.playSound() {
val gameSettings = Minecraft.getMinecraft().gameSettings
val oldLevel = gameSettings.getSoundLevel(SoundCategory.PLAYERS)
@@ -40,4 +42,8 @@ object SoundUtils {
}
return sound
}
+
+ fun playBeepSound() {
+ beepSound.playSound()
+ }
} \ No newline at end of file