Rewrote ModAttack to accept multiple items

This commit is contained in:
mDiyo committed 2013-12-12 03:08:05 -08:00
1 parent 977287e440
commit 086cc97ddc
12 files changed
+152 -50

No files matched your search

@@ -70,8 +70,8 @@ public abstract class ToolMod
return list.isEmpty();
}
protected String getTagName()
protected String getTagName ()
{
return "InfiTool";
}
@@ -211,4 +211,13 @@ public abstract class ToolMod
{
return true;
}
protected boolean areItemStacksEquivalent (ItemStack stack1, ItemStack stack2)
{
if (stack1.itemID != stack2.itemID)
return false;
if (stack1.getItemDamage() != stack2.getItemDamage())
return false;
return ItemStack.areItemStackTagsEqual(stack1, stack2);
}
}