package net.geforcemods.securitycraft.renderers;

import com.mojang.blaze3d.matrix.MatrixStack;

import net.geforcemods.securitycraft.SCContent;
import net.geforcemods.securitycraft.tileentity.KeypadChestTileEntity;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.tileentity.ItemStackTileEntityRenderer;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
import net.minecraft.item.ItemStack;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

@OnlyIn(Dist.CLIENT)
public class ItemKeypadChestRenderer extends ItemStackTileEntityRenderer {
	private static final KeypadChestTileEntity DUMMY_TE = new KeypadChestTileEntity();
	private static final KeypadChestTileEntityRenderer DUMMY_RENDERER = new KeypadChestTileEntityRenderer(TileEntityRendererDispatcher.instance);

	@Override
	public void func_228364_a_(ItemStack stack, MatrixStack matrix, IRenderTypeBuffer buffer, int p_228364_4_, int p_228364_5_)
	{
		if(Block.getBlockFromItem(stack.getItem()) == SCContent.keypadChest)
			DUMMY_RENDERER.func_225616_a_(DUMMY_TE, 0.0F, matrix, buffer, p_228364_4_, p_228364_5_);
		else
			super.func_228364_a_(stack, matrix, buffer, p_228364_4_, p_228364_5_);
	}
}

@@ -131,122 +131,40 @@
 aft.
-SCContent;%0Aimport net.geforcemods.securitycraft.tileentity.KeypadChestTileEntity;%0Aimport net.minecraft.block.Block
+tileentity.KeypadChestTileEntity
 ;%0Aim
@@ -599,17 +599,17 @@
 Renderer
- 
+%0A
 %7B%0A%09priva
@@ -694,38 +694,32 @@
 %09private static 
-final 
 KeypadChestTileE
@@ -736,97 +736,28 @@
 rer 
-DUMMY_RENDERER = new KeypadChestTileEntityRenderer(TileEntityRendererDispatcher.instance)
+dummyRenderer = null
 ;%0A%0A%09
@@ -903,202 +903,170 @@
 %09if(
-Block.getBlockFromItem(stack.getItem()) == SCContent.keypadChest)%0A%09%09%09DUMMY_RENDERER.func_225616_a_(DUMMY_TE, 0.0F, matrix, buffer, p_228364_4_, p_228364_5_);%0A%09%09else%0A%09%09%09super.func_228364_a_(stack
+dummyRenderer == null)%0A%09%09%09dummyRenderer = new KeypadChestTileEntityRenderer(TileEntityRendererDispatcher.instance);%0A%0A%09%09dummyRenderer.func_225616_a_(DUMMY_TE, 0.0F
 , ma

fix data generators not working