14 lines
558 B
Java
14 lines
558 B
Java
package com.pahimar.ee3.client.util;
|
|
|
|
import com.pahimar.ee3.util.ResourceLocationHelper;
|
|
import cpw.mods.fml.client.FMLClientHandler;
|
|
import net.minecraft.client.audio.PositionedSoundRecord;
|
|
|
|
public class ClientSoundHelper
|
|
{
|
|
public static void playSound(String soundName, float xCoord, float yCoord, float zCoord, float volume, float pitch)
|
|
{
|
|
FMLClientHandler.instance().getClient().getSoundHandler().playSound(new PositionedSoundRecord(ResourceLocationHelper.getResourceLocation(soundName), volume, pitch, xCoord, yCoord, zCoord));
|
|
}
|
|
}
|