From 256653501365eb4f95d3dddbcdfdc23a2a9594d5 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Tue, 15 Apr 2014 23:05:32 +0300 Subject: Moved source files --- .../jewelrycraft/CreativeTabLiquids.java | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 eclipse/Jewelrycraft/common/darkknight/jewelrycraft/CreativeTabLiquids.java (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/CreativeTabLiquids.java') diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/CreativeTabLiquids.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/CreativeTabLiquids.java deleted file mode 100644 index 2551628..0000000 --- a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/CreativeTabLiquids.java +++ /dev/null @@ -1,50 +0,0 @@ -package darkknight.jewelrycraft; -import java.util.ArrayList; -import java.util.List; - -import darkknight.jewelrycraft.item.ItemList; -import darkknight.jewelrycraft.util.JewelryNBT; -import darkknight.jewelrycraft.util.JewelrycraftUtil; - -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.init.Items; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; -import net.minecraftforge.oredict.OreDictionary; - -public class CreativeTabLiquids extends CreativeTabs -{ - public static ArrayList metal = new ArrayList(); - - public CreativeTabLiquids(String par2Str) - { - super(par2Str); - metal.add(new ItemStack(Items.gold_ingot)); - metal.add(new ItemStack(Items.iron_ingot)); - } - - @Override - public Item getTabIconItem() - { - return ItemList.bucket; - } - - @SuppressWarnings({ "rawtypes", "unchecked" }) - public void displayAllReleventItems(List par1List) - { - int index = 0, index2 = 0; - while(index < OreDictionary.getOreNames().length) - { - while(index2 < OreDictionary.getOres(OreDictionary.getOreNames()[index]).size()) - { - if(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2).getUnlocalizedName().toLowerCase().contains("ingot") && !metal.contains(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2))) - metal.add(OreDictionary.getOres(OreDictionary.getOreNames()[index]).get(index2)); - index2++; - } - index2 = 0; - index++; - } - for(int i = 0; i < metal.size(); i++) par1List.add(ItemList.bucket.getModifiedItemStack(metal.get(i))); - } - -} -- cgit v1.2.3