Guest User

Untitled

a guest
Sep 15th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.00 KB | None | 0 0
  1. package melonslise.runicinscription.common.sound;
  2.  
  3. import melonslise.runicinscription.RunicInscription;
  4. import net.minecraft.util.ResourceLocation;
  5. import net.minecraft.util.SoundEvent;
  6. import net.minecraftforge.event.RegistryEvent;
  7.  
  8. public class SoundList
  9. {
  10.     public static SoundEvent fireboltCast;
  11.     public static SoundEvent iceboltCast;
  12.     public static SoundEvent fireRainCast;
  13.     public static SoundEvent blessingCast;
  14.  
  15.     public static void register(RegistryEvent.Register<SoundEvent> event)
  16.     {
  17.         fireboltCast = register("FireboltCast");
  18.         iceboltCast = register("IceboltCast");
  19.         fireRainCast = register("FireRainCast");
  20.         blessingCast = register("BlessingCast");
  21.         event.getRegistry().registerAll(fireboltCast, iceboltCast, fireRainCast, blessingCast);
  22.     }
  23.  
  24.     private static SoundEvent register(String name)
  25.     {
  26.         ResourceLocation sound = new ResourceLocation(RunicInscription.ID, name);
  27.         SoundEvent soundEvent = new SoundEvent(sound);
  28.         soundEvent.setRegistryName(sound);
  29.         return soundEvent;
  30.     }
  31. }
Add Comment
Please, Sign In to add comment