Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WorldRegister {
- public static void initWorldClient(RegistryHandler r){
- SoundManager sndManager=new SoundManager(r.getWorldData().getWorldID(), Refs.getWorldSavePath(), "mapres");
- r.registry().registerSoundManager(r.getWorldData().getWorldID(), sndManager);
- SoundFolder sound=new SoundFolder("sound", sndManager, SoundCategory.NEUTRAL, false);
- SoundFolder music=new SoundFolder("music", sndManager, SoundCategory.MUSIC, true);
- sndManager.registerSoundFolder(sound);
- sndManager.registerSoundFolder(music);
- sndManager.registerSounds();
- r.registry().registerResourcePack(new MapResources());
- }
- public static void initWorldServer(RegistryHandler r){
- }
- public static void initWorldCommon(RegistryHandler r){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment