package reborncore.mixin.client;

import net.minecraft.client.render.GameRenderer;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import reborncore.RebornCoreClient;
import reborncore.client.ClientChunkManager;

@Mixin(GameRenderer.class)
public class MixinGameRenderer {

	@Inject(method = "renderCenter", at = @At(value = "INVOKE", target = "net/minecraft/util/profiler/Profiler.swap(Ljava/lang/String;)V", ordinal = 15))
	private void renderCenter(float float_1, long long_1, CallbackInfo info) {
		RebornCoreClient.multiblockRenderEvent.onWorldRenderLast(float_1);

	}

	@Inject(method = "renderCenter", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/debug/DebugRenderer;render(J)V", ordinal = 0))
	private void renderCenter_2(float float_1, long long_1, CallbackInfo info) {
		ClientChunkManager.render();
	}

}

@@ -431,16 +431,36 @@
 erer %7B%0A%0A
+%09//TODO 1.15 nope%0A//
 %09@Inject
@@ -602,16 +602,18 @@
  = 15))%0A
+//
 %09private
@@ -680,16 +680,18 @@
 info) %7B%0A
+//
 %09%09Reborn
@@ -751,21 +751,29 @@
 oat_1);%0A
-%0A%09%7D%0A%0A
+//%0A//%09%7D%0A//%0A//
 %09@Inject
@@ -911,16 +911,18 @@
 l = 0))%0A
+//
 %09private
@@ -991,16 +991,18 @@
 info) %7B%0A
+//
 %09%09Client
@@ -1024,14 +1024,16 @@
 nder();%0A
+//
 %09%7D%0A%0A%7D%0A

Comment out game render hooks