// Path: src/main/java/com/teammetallurgy/agriculture/BlockList.java
// public class BlockList
// {
// 
//     public static Block brewer;
//     public static Block counter;
//     public static Block frier;
//     public static Block icebox;
//     public static Block oven;
//     public static Block processor;
//     public static Block salt;
// 
//     public static Block cinnamon;
//     public static Block peanut;
//     public static Block strawberry;
//     public static Block vanilla;
// 
//     public static void preInit()
//     {
//         String modID = Agriculture.MODID.toLowerCase();
// 
//         // Machines
// 
//         String blockName = "brewer";
//         brewer = new BlockBrewer().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(brewer, blockName);
//         GameRegistry.registerTileEntity(TileEntityBrewer.class, blockName);
// 
//         blockName = "counter";
//         counter = new BlockCounter().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(counter, blockName);
//         GameRegistry.registerTileEntity(TileEntityCounter.class, blockName);
// 
//         blockName = "frier";
//         frier = new BlockFrier().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(frier, blockName);
//         GameRegistry.registerTileEntity(TileEntityFrier.class, blockName);
// 
//         blockName = "icebox";
//         icebox = new BlockIcebox().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(icebox, blockName);
//         GameRegistry.registerTileEntity(TileEntityIcebox.class, blockName);
// 
//         blockName = "oven";
//         oven = new BlockOven().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(oven, blockName);
//         GameRegistry.registerTileEntity(TileEntityOven.class, blockName);
// 
//         blockName = "processor";
//         processor = new BlockProcessor().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(processor, blockName);
//         GameRegistry.registerTileEntity(TileEntityProcessor.class, blockName);
// 
//         blockName = "salt";
//         salt = new BlockSalt();
//         GameRegistry.registerBlock(salt, blockName);
// 
//         // Plants
//         blockName = "cinnamon";
//         cinnamon = new BlockCinnamon();
//         GameRegistry.registerBlock(cinnamon, blockName);
// 
//         blockName = "peanut";
//         peanut = new BlockPeanut();
//         GameRegistry.registerBlock(peanut, blockName);
// 
//         blockName = "strawberry";
//         strawberry = new BlockStrawberry();
//         GameRegistry.registerBlock(strawberry, blockName);
// 
//         blockName = "vanilla";
//         vanilla = new BlockVanilla();
//         GameRegistry.registerBlock(vanilla, blockName);
// 
//     }
// 
// }


import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import com.teammetallurgy.agriculture.BlockList;
import cpw.mods.fml.client.FMLClientHandler;
package com.teammetallurgy.agriculture.machine.frier;





public class ItemRendererFrier implements IItemRenderer
{

    private ResourceLocation texture = new ResourceLocation("agriculture:textures/models/machines/frier.png");
    private ModelFrier model = new ModelFrier();

    @Override
    public boolean handleRenderType(ItemStack itemStack, ItemRenderType type)
    {
        if (itemStack == null || itemStack.getItem() == null) return false;

        if (BlockList.frier != Block.getBlockFromItem(itemStack.getItem())) return false;

        return true;
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack itemStack, ItemRendererHelper helper)
    {
        if (itemStack == null || itemStack.getItem() == null) return false;

// Path: src/main/java/com/teammetallurgy/agriculture/BlockList.java
// public class BlockList
// {
// 
//     public static Block brewer;
//     public static Block counter;
//     public static Block frier;
//     public static Block icebox;
//     public static Block oven;
//     public static Block processor;
//     public static Block salt;
// 
//     public static Block cinnamon;
//     public static Block peanut;
//     public static Block strawberry;
//     public static Block vanilla;
// 
//     public static void preInit()
//     {
//         String modID = Agriculture.MODID.toLowerCase();
// 
//         // Machines
// 
//         String blockName = "brewer";
//         brewer = new BlockBrewer().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(brewer, blockName);
//         GameRegistry.registerTileEntity(TileEntityBrewer.class, blockName);
// 
//         blockName = "counter";
//         counter = new BlockCounter().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(counter, blockName);
//         GameRegistry.registerTileEntity(TileEntityCounter.class, blockName);
// 
//         blockName = "frier";
//         frier = new BlockFrier().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(frier, blockName);
//         GameRegistry.registerTileEntity(TileEntityFrier.class, blockName);
// 
//         blockName = "icebox";
//         icebox = new BlockIcebox().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(icebox, blockName);
//         GameRegistry.registerTileEntity(TileEntityIcebox.class, blockName);
// 
//         blockName = "oven";
//         oven = new BlockOven().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(oven, blockName);
//         GameRegistry.registerTileEntity(TileEntityOven.class, blockName);
// 
//         blockName = "processor";
//         processor = new BlockProcessor().setBlockName(modID + "." + blockName);
//         GameRegistry.registerBlock(processor, blockName);
//         GameRegistry.registerTileEntity(TileEntityProcessor.class, blockName);
// 
//         blockName = "salt";
//         salt = new BlockSalt();
//         GameRegistry.registerBlock(salt, blockName);
// 
//         // Plants
//         blockName = "cinnamon";
//         cinnamon = new BlockCinnamon();
//         GameRegistry.registerBlock(cinnamon, blockName);
// 
//         blockName = "peanut";
//         peanut = new BlockPeanut();
//         GameRegistry.registerBlock(peanut, blockName);
// 
//         blockName = "strawberry";
//         strawberry = new BlockStrawberry();
//         GameRegistry.registerBlock(strawberry, blockName);
// 
//         blockName = "vanilla";
//         vanilla = new BlockVanilla();
//         GameRegistry.registerBlock(vanilla, blockName);
// 
//     }
// 
// }


// Path: src/main/java/com/teammetallurgy/agriculture/machine/frier/ItemRendererFrier.java
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import com.teammetallurgy.agriculture.BlockList;
import cpw.mods.fml.client.FMLClientHandler;

package com.teammetallurgy.agriculture.machine.frier;





public class ItemRendererFrier implements IItemRenderer
{

    private ResourceLocation texture = new ResourceLocation("agriculture:textures/models/machines/frier.png");
    private ModelFrier model = new ModelFrier();

    @Override
    public boolean handleRenderType(ItemStack itemStack, ItemRenderType type)
    {
        if (itemStack == null || itemStack.getItem() == null) return false;

        if (BlockList.frier != Block.getBlockFromItem(itemStack.getItem())) return false;

        return true;
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack itemStack, ItemRendererHelper helper)
    {
        if (itemStack == null || itemStack.getItem() == null) return false;

        if (BlockList.frier != Block.getBlockFromItem(itemStack.getItem())) return false;