Added Render Success Sound Effect

This commit is contained in:
CrushedPixel
2015-06-22 13:19:41 +02:00
parent 3524dfbd5f
commit a15187b3ec
5 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
package eu.crushedpixel.replaymod.sound;
import net.minecraft.client.Minecraft;
import net.minecraft.client.audio.PositionedSoundRecord;
import net.minecraft.util.ResourceLocation;
public class SoundHandler {
private final Minecraft mc = Minecraft.getMinecraft();
private final ResourceLocation successSoundLocation = new ResourceLocation("replaymod:renderSuccess");
public void playRenderSuccessSound() {
mc.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(successSoundLocation, 1.0F));
}
}