Re-add an updated ic2, alter CC and update DepLoader. Fix more of the things.

1792 errors. A good night's work, I think.
This commit is contained in:
Ben Spiers committed 2014-04-20 04:34:19 +01:00
1 parent ab47724473
commit db7121454a
280 files changed
+6850 -2031

No files matched your search

+7 -6
View File
@@ -1,28 +1,29 @@
package mekanism.api;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class ItemInfo
{
public int id;
public Item item;
public int meta;
public ItemInfo(int i, int j)
public ItemInfo(Item i, int j)
{
id = i;
item = i;
meta = j;
}
public static ItemInfo get(ItemStack stack)
{
return new ItemInfo(stack.itemID, stack.getItemDamage());
return new ItemInfo(stack.getItem(), stack.getItemDamage());
}
@Override
public boolean equals(Object obj)
{
return obj instanceof ItemInfo &&
((ItemInfo)obj).id == id &&
((ItemInfo)obj).item == item &&
((ItemInfo)obj).meta == meta;
}
@@ -30,7 +31,7 @@ public class ItemInfo
public int hashCode()
{
int code = 1;
code = 31 * code + id;
code = 31 * code + item.getUnlocalizedName().hashCode();
code = 31 * code + meta;
return code;
}