Advertisement
Guest User

Untitled

a guest
Feb 16th, 2013
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. package EmeraldsPlus.common;
  2.  
  3. import net.minecraftforge.client.event.sound.SoundLoadEvent;
  4. import net.minecraftforge.event.ForgeSubscribe;
  5.  
  6. public class EPSoundEvents
  7. {
  8. @ForgeSubscribe
  9. public void onSound(SoundLoadEvent event)
  10. {
  11. try
  12. {
  13. //you will need to add a line like this for every single sound you add.
  14. //the ""[type][name][file-extension]"" adds the sound to the sound library. the "[type][name][file-extension]""
  15. //pulls the sound from the specified location.
  16. event.manager.soundPoolSounds.addSound("Departure.ogg", mod_EmeraldsPlus.class.getResource("EmeraldsPlusF/Departure.ogg"));
  17. event.manager.soundPoolSounds.addSound("ccp.ogg", mod_EmeraldsPlus.class.getResource("EmeraldsPlusF/ccp.ogg"));
  18.  
  19.  
  20. }
  21. catch (Exception e)
  22. {
  23. //this is just an error message you can add.
  24. System.err.println("There was a problem loading sounds. please report to the author");
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement