Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package melonslise.runicinscription.common.sound;
- import melonslise.runicinscription.RunicInscription;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.util.SoundEvent;
- import net.minecraftforge.event.RegistryEvent;
- public class SoundList
- {
- public static SoundEvent fireboltCast;
- public static SoundEvent iceboltCast;
- public static SoundEvent fireRainCast;
- public static SoundEvent blessingCast;
- public static void register(RegistryEvent.Register<SoundEvent> event)
- {
- fireboltCast = register("FireboltCast");
- iceboltCast = register("IceboltCast");
- fireRainCast = register("FireRainCast");
- blessingCast = register("BlessingCast");
- event.getRegistry().registerAll(fireboltCast, iceboltCast, fireRainCast, blessingCast);
- }
- private static SoundEvent register(String name)
- {
- ResourceLocation sound = new ResourceLocation(RunicInscription.ID, name);
- SoundEvent soundEvent = new SoundEvent(sound);
- soundEvent.setRegistryName(sound);
- return soundEvent;
- }
- }
Add Comment
Please, Sign In to add comment