32 lines
852 B
Java
32 lines
852 B
Java
/**
|
|
*
|
|
*/
|
|
package resonantinduction;
|
|
|
|
import net.minecraftforge.client.event.sound.SoundLoadEvent;
|
|
import net.minecraftforge.event.ForgeSubscribe;
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
/**
|
|
* @author Calclavia
|
|
*
|
|
*/
|
|
@SideOnly(Side.CLIENT)
|
|
public class SoundHandler
|
|
{
|
|
public static final SoundHandler INSTANCE = new SoundHandler();
|
|
|
|
public static final String[] SOUND_FILES = { "electricshock1.ogg", "electricshock2.ogg", "electricshock3.ogg", "electricshock4.ogg", "electricshock5.ogg", "electricshock6.ogg", "electricshock7.ogg" };
|
|
|
|
@ForgeSubscribe
|
|
public void loadSoundEvents(SoundLoadEvent event)
|
|
{
|
|
for (int i = 0; i < SOUND_FILES.length; i++)
|
|
{
|
|
event.manager.soundPoolSounds.addSound(ResonantInduction.PREFIX + SOUND_FILES[i]);
|
|
}
|
|
|
|
ResonantInduction.LOGGER.fine("Loaded sound fxs");
|
|
}
|
|
}
|