// Path: src/main/java/openccsensors/OpenCCSensors.java
// @Mod( modid = "OCS", name = "OpenCCSensors", version = "1.7.5", dependencies = "required-after:ComputerCraft;after:CCTurtle;after:BuildCraft|Core;after:IC2;after:Thaumcraft;after:AppliedEnergistics;after:RailCraft;after:ArsMagica;after:UniversalElectricity;after:ThermalExpansion;after:RotaryCraft")
// public class OpenCCSensors {
// 
// 	public static class Blocks
// 	{
// 		public static BlockSensor sensorBlock;
// 		public static BlockGauge gaugeBlock;
// 		public static BlockBasicSensor basicSensorBlock;
// 	}
// 	
// 	public static class Config
// 	{
// 		public static int sensorBlockID;
// 		public static int basicSensorBlockID;
// 		public static int gaugeBlockID;
// 		public static int sensorCardID;
// 		public static int genericItemID;
// 		public static boolean turtlePeripheralEnabled;
// 		public static boolean enableAnalytics;
// 	}
// 	
// 	public static class Tiers {
// 		public static SensorTier tier1;
// 		public static SensorTier tier2;
// 		public static SensorTier tier3;
// 		public static SensorTier tier4;
// 	}
// 	
// 	public static TurtleUpgradeSensor turtleUpgradeSensor;
// 	
// 
// 	public static class Items
// 	{
// 		public static ItemGeneric genericItem;
// 		public static ItemSensorCard sensorCard;
// 		
// 		public static IItemMeta rangeExtensionAntenna;
// 		public static IItemMeta signalAmplifier;
// 		public static IItemMeta advancedAmplifier;
// 	}
// 
// 	public static int renderId;
// 	
// 	public static class Sensors {
// 		
// 		public static ProximitySensor proximitySensor;
// 		public static MinecartSensor minecartSensor;
// 		public static DroppedItemSensor droppedItemSensor;
// 		public static InventorySensor inventorySensor;
// 		public static SignSensor signSensor;
// 		public static SonicSensor sonicSensor;
// 		public static TankSensor tankSensor;
// 		public static WorldSensor worldSensor;
// 		public static MagicSensor magicSensor;
// 		public static MachineSensor machineSensor;
// 		public static PowerSensor powerSensor;
// 		public static CropSensor cropSensor;
// 	}
// 	
// 	public static String LUA_PATH;
// 	public static String EXTRACTED_LUA_PATH;
// 	
// 	public static LuaMount mount = new LuaMount();
// 
// 	public static CreativeTabs tabOpenCCSensors = new CreativeTabs("tabOpenCCSensors") {
//                 public ItemStack getIconItemStack() {
//                         return new ItemStack(Blocks.sensorBlock, 1, 0);
//                 }
// 
// 				@Override
// 				public Item getTabIconItem() {
// 					return Items.sensorCard;
// 				}
//   };
// 
// 	@Instance( value = "OCS" )
// 	public static OpenCCSensors instance;
// 
// 	@SidedProxy( clientSide = "openccsensors.client.ClientProxy", serverSide = "openccsensors.common.CommonProxy" )
// 	public static CommonProxy proxy;
// 	
// 	@EventHandler
// 	public void init( FMLInitializationEvent evt )
// 	{
// 		OCSLog.init();
// 
// 		OCSLog.info( "OpenCCSensors version %s starting", FMLCommonHandler.instance().findContainerFor(instance).getVersion() );
// 
// 		proxy.init();
// 
// 		proxy.registerRenderInformation();
// 	}
// 	
// 	@EventHandler
// 	public void preInit( FMLPreInitializationEvent evt )
// 	{
// 
// 		LUA_PATH = "/assets/openccsensors/lua";
// 		EXTRACTED_LUA_PATH = String.format("mods/OCSLua/%s/lua", FMLCommonHandler.instance().findContainerFor(OpenCCSensors.instance).getVersion());
// 		
// 		Configuration configFile = new Configuration(evt.getSuggestedConfigurationFile());
// 
// 		Property prop = configFile.get("general", "turtlePeripheralEnabled", true);
// 		prop.comment = "Turtle Peripheral Enabled";
// 		Config.turtlePeripheralEnabled = prop.getBoolean(true);
// 
// 
// 		configFile.save();
// 		
// 	}
// }
// 
// Path: src/main/java/openccsensors/api/IItemMeta.java
// public interface IItemMeta {
// 	public int getId();
//     public boolean displayInCreative();
//     public IIcon getIcon();
//     public String getName();
// 	ItemStack newItemStack(int size);
// }
// 
// Path: src/main/java/openccsensors/api/IRequiresIconLoading.java
// public interface IRequiresIconLoading {
// 	public void loadIcon(IIconRegister iconRegistry);
// }


import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import openccsensors.OpenCCSensors;
import openccsensors.api.IItemMeta;
import openccsensors.api.IRequiresIconLoading;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
package openccsensors.common.item;



public class ItemGeneric extends Item {

	private HashMap<Integer, IItemMeta> metaitems = new HashMap<Integer, IItemMeta>();

	public ItemGeneric() {
		super();
		setHasSubtypes(true);
		setMaxDamage(0);
		setMaxStackSize(64);
		setCreativeTab(OpenCCSensors.tabOpenCCSensors);
	}
	
	@Override
	@SideOnly(Side.CLIENT)
	public void getSubItems(Item item, CreativeTabs tab, List subItems) {
// Path: src/main/java/openccsensors/OpenCCSensors.java
// @Mod( modid = "OCS", name = "OpenCCSensors", version = "1.7.5", dependencies = "required-after:ComputerCraft;after:CCTurtle;after:BuildCraft|Core;after:IC2;after:Thaumcraft;after:AppliedEnergistics;after:RailCraft;after:ArsMagica;after:UniversalElectricity;after:ThermalExpansion;after:RotaryCraft")
// public class OpenCCSensors {
// 
// 	public static class Blocks
// 	{
// 		public static BlockSensor sensorBlock;
// 		public static BlockGauge gaugeBlock;
// 		public static BlockBasicSensor basicSensorBlock;
// 	}
// 	
// 	public static class Config
// 	{
// 		public static int sensorBlockID;
// 		public static int basicSensorBlockID;
// 		public static int gaugeBlockID;
// 		public static int sensorCardID;
// 		public static int genericItemID;
// 		public static boolean turtlePeripheralEnabled;
// 		public static boolean enableAnalytics;
// 	}
// 	
// 	public static class Tiers {
// 		public static SensorTier tier1;
// 		public static SensorTier tier2;
// 		public static SensorTier tier3;
// 		public static SensorTier tier4;
// 	}
// 	
// 	public static TurtleUpgradeSensor turtleUpgradeSensor;
// 	
// 
// 	public static class Items
// 	{
// 		public static ItemGeneric genericItem;
// 		public static ItemSensorCard sensorCard;
// 		
// 		public static IItemMeta rangeExtensionAntenna;
// 		public static IItemMeta signalAmplifier;
// 		public static IItemMeta advancedAmplifier;
// 	}
// 
// 	public static int renderId;
// 	
// 	public static class Sensors {
// 		
// 		public static ProximitySensor proximitySensor;
// 		public static MinecartSensor minecartSensor;
// 		public static DroppedItemSensor droppedItemSensor;
// 		public static InventorySensor inventorySensor;
// 		public static SignSensor signSensor;
// 		public static SonicSensor sonicSensor;
// 		public static TankSensor tankSensor;
// 		public static WorldSensor worldSensor;
// 		public static MagicSensor magicSensor;
// 		public static MachineSensor machineSensor;
// 		public static PowerSensor powerSensor;
// 		public static CropSensor cropSensor;
// 	}
// 	
// 	public static String LUA_PATH;
// 	public static String EXTRACTED_LUA_PATH;
// 	
// 	public static LuaMount mount = new LuaMount();
// 
// 	public static CreativeTabs tabOpenCCSensors = new CreativeTabs("tabOpenCCSensors") {
//                 public ItemStack getIconItemStack() {
//                         return new ItemStack(Blocks.sensorBlock, 1, 0);
//                 }
// 
// 				@Override
// 				public Item getTabIconItem() {
// 					return Items.sensorCard;
// 				}
//   };
// 
// 	@Instance( value = "OCS" )
// 	public static OpenCCSensors instance;
// 
// 	@SidedProxy( clientSide = "openccsensors.client.ClientProxy", serverSide = "openccsensors.common.CommonProxy" )
// 	public static CommonProxy proxy;
// 	
// 	@EventHandler
// 	public void init( FMLInitializationEvent evt )
// 	{
// 		OCSLog.init();
// 
// 		OCSLog.info( "OpenCCSensors version %s starting", FMLCommonHandler.instance().findContainerFor(instance).getVersion() );
// 
// 		proxy.init();
// 
// 		proxy.registerRenderInformation();
// 	}
// 	
// 	@EventHandler
// 	public void preInit( FMLPreInitializationEvent evt )
// 	{
// 
// 		LUA_PATH = "/assets/openccsensors/lua";
// 		EXTRACTED_LUA_PATH = String.format("mods/OCSLua/%s/lua", FMLCommonHandler.instance().findContainerFor(OpenCCSensors.instance).getVersion());
// 		
// 		Configuration configFile = new Configuration(evt.getSuggestedConfigurationFile());
// 
// 		Property prop = configFile.get("general", "turtlePeripheralEnabled", true);
// 		prop.comment = "Turtle Peripheral Enabled";
// 		Config.turtlePeripheralEnabled = prop.getBoolean(true);
// 
// 
// 		configFile.save();
// 		
// 	}
// }
// 
// Path: src/main/java/openccsensors/api/IItemMeta.java
// public interface IItemMeta {
// 	public int getId();
//     public boolean displayInCreative();
//     public IIcon getIcon();
//     public String getName();
// 	ItemStack newItemStack(int size);
// }
// 
// Path: src/main/java/openccsensors/api/IRequiresIconLoading.java
// public interface IRequiresIconLoading {
// 	public void loadIcon(IIconRegister iconRegistry);
// }


// Path: src/main/java/openccsensors/common/item/ItemGeneric.java
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import openccsensors.OpenCCSensors;
import openccsensors.api.IItemMeta;
import openccsensors.api.IRequiresIconLoading;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

package openccsensors.common.item;



public class ItemGeneric extends Item {

	private HashMap<Integer, IItemMeta> metaitems = new HashMap<Integer, IItemMeta>();

	public ItemGeneric() {
		super();
		setHasSubtypes(true);
		setMaxDamage(0);
		setMaxStackSize(64);
		setCreativeTab(OpenCCSensors.tabOpenCCSensors);
	}
	
	@Override
	@SideOnly(Side.CLIENT)
	public void getSubItems(Item item, CreativeTabs tab, List subItems) {
		OpenCCSensors.turtleUpgradeSensor.addTurtlesToCreative(subItems);