package com.zivilon.cinder_loe.mixins;

import com.zivilon.cinder_loe.client.render.item.RenderHelper;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

import lotr.client.render.entity.LOTRRenderNPCRespawner;

import net.minecraft.client.renderer.Tessellator;

@Mixin(LOTRRenderNPCRespawner.class)
public abstract class MixinLOTRRenderNPCRespawner {
    @Redirect(method = "func_76986_a(Lnet/minecraft/entity/Entity;DDDFF)V", remap = false,
              at = @At(value = "INVOKE",
                       target = "Lnet/minecraft/client/renderer/ItemRenderer;func_78439_a(Lnet/minecraft/client/renderer/Tessellator;FFFFIIF)V"))
    private void onRenderItemIn2D(Tessellator tessellator, float f1, float f2, float f, float f3, int width, int height, float thickness) {
        RenderHelper.customRenderItemIn2D(tessellator, f1, f2, f, f3, width, height, thickness, false);
    }
}
