Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.camellias.voidaicarcania.util.handlers;
- import com.camellias.voidaicarcania.Reference;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.util.SoundEvent;
- import net.minecraftforge.fml.common.registry.ForgeRegistries;
- public class SoundsHandler
- {
- public static SoundEvent VOID_ENTRY_AMBIENT;
- public static void registerSounds()
- {
- VOID_ENTRY_AMBIENT = registerSound("voidic.ambient");
- }
- private static SoundEvent registerSound(String name)
- {
- ResourceLocation location = new ResourceLocation(Reference.MODID, name);
- SoundEvent event = new SoundEvent(location);
- event.setRegistryName(name);
- ForgeRegistries.SOUND_EVENTS.register(event);
- return event;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment