// Path: java/tb/common/item/ItemNodeFoci.java
// public class ItemNodeFoci extends Item{
// 
// 	public static final String names[] = new String[]{
// 		"brightness",
// 		"destruction",
// 		"efficiency",
// 		"hunger",
// 		"instability",
// 		"purity",
// 		"sinister",
// 		"speed",
// 		"stability",
// 		"taint"
// 	};
// 	
// 	public ItemNodeFoci()
// 	{
// 		super();
// 		this.setHasSubtypes(true);
// 		this.setMaxDamage(0);
// 		this.setMaxStackSize(1);
// 	}
// 	
//     public int getMetadata(int meta)
//     {
//     	return meta;
//     }
//     
//     public String getUnlocalizedName(ItemStack is)
//     {
//     	return super.getUnlocalizedName(is)+names[is.getItemDamage()].replace('/', '.');
//     }
//     
//     @SuppressWarnings({ "rawtypes", "unchecked" })
// 	@SideOnly(Side.CLIENT)
//     public void getSubItems(Item itm, CreativeTabs tab, List lst)
//     {
//     	for(int i = 0; i < names.length; ++i)
//     		lst.add(new ItemStack(itm,1,i));
//     }
// }


import javax.vecmath.Matrix4f;
import DummyCore.Client.AdvancedModelLoader;
import DummyCore.Client.IItemRenderer;
import DummyCore.Client.IModelCustom;
import DummyCore.Client.RPAwareModel;
import DummyCore.Utils.DrawUtils;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import tb.common.item.ItemNodeFoci;
package tb.client.render.item;



@SuppressWarnings("deprecation")
public class NodeFociRenderer implements IItemRenderer {
	
	public static final IModelCustom model = AdvancedModelLoader.loadModel(new ResourceLocation("thaumicbases","models/nodeManipulator/foci.obj"));
	
	@Override
	public boolean handleRenderType(ItemStack item, TransformType type) {
		return true;
	}

	@Override
	public void renderItem(TransformType type, ItemStack item) {
		
		GlStateManager.pushMatrix();
		RenderHelper.disableStandardItemLighting();
		RenderHelper.enableGUIStandardItemLighting();
		
		GlStateManager.scale(0.25, 0.25, 0.25);
		GlStateManager.translate(2, 1, 2);
// Path: java/tb/common/item/ItemNodeFoci.java
// public class ItemNodeFoci extends Item{
// 
// 	public static final String names[] = new String[]{
// 		"brightness",
// 		"destruction",
// 		"efficiency",
// 		"hunger",
// 		"instability",
// 		"purity",
// 		"sinister",
// 		"speed",
// 		"stability",
// 		"taint"
// 	};
// 	
// 	public ItemNodeFoci()
// 	{
// 		super();
// 		this.setHasSubtypes(true);
// 		this.setMaxDamage(0);
// 		this.setMaxStackSize(1);
// 	}
// 	
//     public int getMetadata(int meta)
//     {
//     	return meta;
//     }
//     
//     public String getUnlocalizedName(ItemStack is)
//     {
//     	return super.getUnlocalizedName(is)+names[is.getItemDamage()].replace('/', '.');
//     }
//     
//     @SuppressWarnings({ "rawtypes", "unchecked" })
// 	@SideOnly(Side.CLIENT)
//     public void getSubItems(Item itm, CreativeTabs tab, List lst)
//     {
//     	for(int i = 0; i < names.length; ++i)
//     		lst.add(new ItemStack(itm,1,i));
//     }
// }


// Path: java/tb/client/render/item/NodeFociRenderer.java
import javax.vecmath.Matrix4f;
import DummyCore.Client.AdvancedModelLoader;
import DummyCore.Client.IItemRenderer;
import DummyCore.Client.IModelCustom;
import DummyCore.Client.RPAwareModel;
import DummyCore.Utils.DrawUtils;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import tb.common.item.ItemNodeFoci;

package tb.client.render.item;



@SuppressWarnings("deprecation")
public class NodeFociRenderer implements IItemRenderer {
	
	public static final IModelCustom model = AdvancedModelLoader.loadModel(new ResourceLocation("thaumicbases","models/nodeManipulator/foci.obj"));
	
	@Override
	public boolean handleRenderType(ItemStack item, TransformType type) {
		return true;
	}

	@Override
	public void renderItem(TransformType type, ItemStack item) {
		
		GlStateManager.pushMatrix();
		RenderHelper.disableStandardItemLighting();
		RenderHelper.enableGUIStandardItemLighting();
		
		GlStateManager.scale(0.25, 0.25, 0.25);
		GlStateManager.translate(2, 1, 2);
		DrawUtils.bindTexture("thaumicbases", "textures/blocks/nodeManipulator/foci_"+ItemNodeFoci.names[item.getItemDamage()]+".png");