package com.raoulvdberge.refinedstorage.render.tesr;

import com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingPattern;
import com.raoulvdberge.refinedstorage.item.PatternItem;
import net.minecraft.client.renderer.tileentity.ItemStackTileEntityRenderer;
import net.minecraft.item.ItemStack;

public class PatternItemStackTileRenderer extends ItemStackTileEntityRenderer {
    /* TODO @Override
    public void renderByItem(ItemStack stack) {
        CraftingPattern pattern = PatternItem.fromCache(null, stack);

        ItemStack outputStack = pattern.getOutputs().get(0);

        outputStack.getItem().getTileEntityItemStackRenderer().renderByItem(outputStack);
    }*/
}
@@ -47,16 +47,62 @@
 .tesr;%0A%0A
+import com.mojang.blaze3d.matrix.MatrixStack;%0A
 import c
@@ -227,16 +227,72 @@
 rnItem;%0A
+import net.minecraft.client.renderer.IRenderTypeBuffer;%0A
 import n
@@ -486,16 +486,8 @@
     
-/* TODO 
 @Ove
@@ -508,28 +508,30 @@
 ic void 
-renderByItem
+func_228364_a_
 (ItemSta
@@ -538,16 +538,111 @@
 ck stack
+, MatrixStack matrixStack, IRenderTypeBuffer renderTypeBuffer, int p_228364_4_, int p_228364_5_
 ) %7B%0A    
@@ -837,40 +837,99 @@
 r().
-renderByItem(outputStack
+func_228364_a_(outputStack, matrixStack, renderTypeBuffer, p_228364_4_, p_228364_5_
 );%0A    %7D
 */%0A%7D
@@ -928,8 +928,6 @@
    %7D
-*/
 %0A%7D

Fix pattern item stack tile renderer