Update BC & IC2 APIs

This commit is contained in:
Aidan Brady committed 2013-12-26 15:00:08 -05:00
1 parent 4d64afb7d9
commit 1573474654
23 files changed
+985 -698

No files matched your search

+5 -9
View File
@@ -11,22 +11,19 @@ package buildcraft.api.core;
import net.minecraft.item.ItemStack;
/**
*
*
* @author CovertJaguar <http://www.railcraft.info/>
*/
public class StackWrapper
{
public class StackWrapper {
public final ItemStack stack;
public StackWrapper(ItemStack stack)
{
public StackWrapper(ItemStack stack) {
this.stack = stack;
}
@Override
public int hashCode()
{
public int hashCode() {
int hash = 5;
hash = 67 * hash + stack.itemID;
hash = 67 * hash + stack.getItemDamage();
@@ -36,8 +33,7 @@ public class StackWrapper
}
@Override
public boolean equals(Object obj)
{
public boolean equals(Object obj) {
if (obj == null)
return false;
if (getClass() != obj.getClass())