summaryrefslogtreecommitdiff
path: root/src/main/java/parts/Item_Glowthread.java
diff options
context:
space:
mode:
authorLance5057 <Lance5057@gmail.com>2015-09-03 16:27:29 -0500
committerLance5057 <Lance5057@gmail.com>2015-09-03 16:27:29 -0500
commit235bbdbb4156f5a8fea574193170a22d93267545 (patch)
treeb6c43a7bb8e32d55e6d0c71bd8e84aff0e2e5098 /src/main/java/parts/Item_Glowthread.java
parent21c92007da84b33e44afcac5eecd48760cf1b107 (diff)
Rewrite of Injector. Added chainmaille, cloth, clasps.
Diffstat (limited to 'src/main/java/parts/Item_Glowthread.java')
-rw-r--r--src/main/java/parts/Item_Glowthread.java52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/main/java/parts/Item_Glowthread.java b/src/main/java/parts/Item_Glowthread.java
deleted file mode 100644
index 163d481..0000000
--- a/src/main/java/parts/Item_Glowthread.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package parts;
-
-import gmail.Lance5057.TinkersDefense;
-
-import java.util.List;
-
-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;
-
-public class Item_Glowthread extends Item
-{
- public IIcon[] icons = new IIcon[16];
- public static final String[] colors = new String[] {"black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "grey", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"};
-
- public Item_Glowthread()
- {
- super();
- this.setHasSubtypes(true);
- this.setUnlocalizedName("GlowThread");
- this.setCreativeTab(TinkersDefense.tabName);
- }
-
- @Override
- public void registerIcons(IIconRegister reg) {
- for (int i = 0; i < 16; i ++) {
- this.icons[i] = reg.registerIcon("tinkersdefense:" + colors[i] + "_glowthread" );
- }
- }
-
- @Override
- public IIcon getIconFromDamage(int meta) {
- if (meta > 15)
- meta = 0;
-
- return this.icons[meta];
- }
-
- @Override
- public void getSubItems(Item item, CreativeTabs tab, List list) {
- for (int i = 0; i < 16; i ++) {
- list.add(new ItemStack(item, 1, i));
- }
- }
-
- @Override
- public String getUnlocalizedName(ItemStack stack) {
- return colors[stack.getItemDamage()] + "_" + this.getUnlocalizedName();
- }
-}