Guest User

WorldRegister.class

a guest
Sep 30th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. public class WorldRegister {
  2.    
  3.     public static void initWorldClient(RegistryHandler r){
  4.         SoundManager sndManager=new SoundManager(r.getWorldData().getWorldID(), Refs.getWorldSavePath(), "mapres");
  5.         r.registry().registerSoundManager(r.getWorldData().getWorldID(), sndManager);
  6.         SoundFolder sound=new SoundFolder("sound", sndManager, SoundCategory.NEUTRAL, false);
  7.         SoundFolder music=new SoundFolder("music", sndManager, SoundCategory.MUSIC, true);
  8.         sndManager.registerSoundFolder(sound);
  9.         sndManager.registerSoundFolder(music);
  10.        
  11.         sndManager.registerSounds();
  12.         r.registry().registerResourcePack(new MapResources());
  13.     }
  14.    
  15.     public static void initWorldServer(RegistryHandler r){
  16.        
  17.     }
  18.    
  19.     public static void initWorldCommon(RegistryHandler r){
  20.        
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment