package com.creativemd.creativecore.client.rendering.model;

import java.util.HashMap;

import com.creativemd.creativecore.core.CreativeCoreClient;

import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemMeshDefinition;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.ModelLoaderRegistry;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class CreativeBlockRenderHelper {
	
	public static HashMap<ResourceLocation, Block> blocks = new HashMap<>();
	
	public static void registerCreativeRenderedBlock(Block block)
	{
		blocks.put(block.getRegistryName(), block);
		CreativeCoreClient.registerBlockItem(block);
		if(FMLCommonHandler.instance().getEffectiveSide().isClient())
			registerCreativeRenderedBlockClient(block);
	}
	
	@SideOnly(Side.CLIENT)
	private static void registerCreativeRenderedBlockClient(Block block)
	{
		CreativeCoreClient.registerBlockColorHandler(block);
	}
	
}

@@ -811,16 +811,357 @@
 ap%3C%3E();%0A
+%09public static HashMap%3CResourceLocation, Item%3E items = new HashMap%3C%3E();%0A%09%0A%09public static void registerCreativeRenderedItem(Item item)%0A%09%7B%0A%09%09items.put(item.getRegistryName(), item);%0A%09%09CreativeCoreClient.registerItemRenderer(item);%0A%09%09if(FMLCommonHandler.instance().getEffectiveSide().isClient())%0A%09%09%09registerCreativeRenderedItemClient(item);%0A%09%7D%0A
 %09%0A%09publi
@@ -1453,16 +1453,168 @@
 CLIENT)%0A
+%09private static void registerCreativeRenderedItemClient(Item item)%0A%09%7B%0A%09%09CreativeCoreClient.registerItemColorHandler(item);%0A%09%7D%0A%09%0A%09@SideOnly(Side.CLIENT)%0A
 %09private

Add item spesific block renderer