Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package EmeraldsPlus.common;
- import net.minecraftforge.client.event.sound.SoundLoadEvent;
- import net.minecraftforge.event.ForgeSubscribe;
- public class EPSoundEvents
- {
- @ForgeSubscribe
- public void onSound(SoundLoadEvent event)
- {
- try
- {
- //you will need to add a line like this for every single sound you add.
- //the ""[type][name][file-extension]"" adds the sound to the sound library. the "[type][name][file-extension]""
- //pulls the sound from the specified location.
- event.manager.soundPoolSounds.addSound("Departure.ogg", mod_EmeraldsPlus.class.getResource("EmeraldsPlusF/Departure.ogg"));
- event.manager.soundPoolSounds.addSound("ccp.ogg", mod_EmeraldsPlus.class.getResource("EmeraldsPlusF/ccp.ogg"));
- }
- catch (Exception e)
- {
- //this is just an error message you can add.
- System.err.println("There was a problem loading sounds. please report to the author");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement