package info.u_team.u_team_core.util.registry;

import java.util.function.Consumer;

import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

public class BusRegistry {
	
	public static void registerMod(Consumer<IEventBus> consumer) {
		register(FMLJavaModLoadingContext.get().getModEventBus(), consumer);
	}
	
	public static void register(IEventBus bus, Consumer<IEventBus> consumer) {
		consumer.accept(bus);
	}
	
}

@@ -78,16 +78,65 @@
 sumer;%0A%0A
+import net.minecraftforge.common.MinecraftForge;%0A
 import n
@@ -414,16 +414,135 @@
 );%0A%09%7D%0A%09%0A
+%09public static void registerForge(Consumer%3CIEventBus%3E consumer) %7B%0A%09%09register(MinecraftForge.EVENT_BUS, consumer);%0A%09%7D%0A%09%0A
 %09public 

Add for forge