From 4d1fcf5b07f14d40b78e25ecf7fd0eabf5733864 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 14 Apr 2023 15:55:23 +0200 Subject: Added Jacob's Contest Warning - Show a warning shortly before a new jacob contest starts. --- src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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 -- cgit