package info.u_team.u_team_test.init;

import info.u_team.u_team_core.util.registry.ClientRegistry;
import info.u_team.u_team_test.entity.render.TestLivingEntityRenderer;
import net.minecraft.client.renderer.entity.ThrownItemRenderer;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

public class TestRenderers {

	private static void setup(FMLClientSetupEvent event) {
		ClientRegistry.registerEntityRenderer(TestEntityTypes.BETTER_ENDERPEARL, ThrownItemRenderer::new);
		ClientRegistry.registerEntityRenderer(TestEntityTypes.TEST_LIVING, TestLivingEntityRenderer::new);
	}

	public static void registerMod(IEventBus bus) {
		bus.addListener(TestRenderers::setup);
	}
}

@@ -36,69 +36,8 @@
 t;%0A%0A
-import info.u_team.u_team_core.util.registry.ClientRegistry;%0A
 impo
@@ -197,29 +197,58 @@
 rge.
-eventbus.api.IEventBu
+client.event.EntityRenderersEvent.RegisterRenderer
 s;%0Ai
@@ -276,47 +276,30 @@
 rge.
-fml.
 event
-.lifecycle.FMLClientSetup
+bus.api.I
 Event
+Bus
 ;%0A%0Ap
@@ -326,16 +326,17 @@
 erers %7B%0A
+%09
 %0A%09privat
@@ -353,59 +353,60 @@
 oid 
-setup(FMLClientSetupEvent event) %7B%0A%09%09ClientRegistry
+registerRenderers(RegisterRenderers event) %7B%0A%09%09event
 .reg
@@ -458,16 +458,22 @@
 DERPEARL
+.get()
 , Thrown
@@ -498,22 +498,13 @@
 ;%0A%09%09
-ClientRegistry
+event
 .reg
@@ -550,16 +550,22 @@
 T_LIVING
+.get()
 , TestLi
@@ -593,16 +593,17 @@
 ew);%0A%09%7D%0A
+%09
 %0A%09public
@@ -681,13 +681,25 @@
 rs::
-setup
+registerRenderers
 );%0A%09

Update entity renderer to use the new events