package info.u_team.u_team_test.init;

import info.u_team.u_team_core.soundevent.USoundEvent;
import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestSounds {
	
	public static final SoundEvent BETTER_ENDERPEARL_USE = new USoundEvent("better_enderpearl_use");
	
	@SubscribeEvent
	public static void register(Register<SoundEvent> event) {
		BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, SoundEvent.class).forEach(event.getRegistry()::register);
	}
	
}

@@ -91,71 +91,8 @@
 nt;%0A
-import info.u_team.u_team_core.util.registry.BaseRegistryUtil;%0A
 impo
@@ -200,86 +200,25 @@
 vent
-.RegistryEvent.Register;%0Aimport net.minecraftforge.eventbus.api.Subscribe
+bus.api.I
 Event
+Bus
 ;%0Aim
@@ -340,16 +340,56 @@
 ber.Bus;
+%0Aimport net.minecraftforge.registries.*;
 %0A%0A@Event
@@ -468,16 +468,153 @@
 nds %7B%0A%09%0A
+%09public static final DeferredRegister%3CSoundEvent%3E SOUND_EVENTS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, TestMod.MODID);%0A%09%0A
 %09public 
@@ -709,25 +709,8 @@
 ;%0A%09%0A
-%09@SubscribeEvent%0A
 %09pub
@@ -738,162 +738,52 @@
 ter(
-Register%3CSoundEvent%3E event) %7B%0A%09%09BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, SoundEvent.class).forEach(event.getRegistry()::register
+IEventBus bus) %7B%0A%09%09SOUND_EVENTS.register(bus
 );%0A%09

Add deferred register to test sounds