Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. package Test;
  2.  
  3. import net.minecraftforge.client.event.sound.SoundLoadEvent;
  4. import net.minecraftforge.event.ForgeSubscribe;
  5.  
  6. public class EventSoundTutorial
  7. {
  8. @ForgeSubscribe
  9. public void onSound(SoundLoadEvent event)
  10. {
  11. try
  12. {
  13. event.manager.addSound("tm:explosion1.ogg");
  14. }
  15. catch(Exception e)
  16. {
  17. System.out.println("Failed to registry sound");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement