commit source

This commit is contained in:
John Yorke committed 2016-10-25 21:04:40 -03:00
commit 1381f5b9b4
171 files changed
+7742

No files matched your search

@@ -0,0 +1,30 @@
package taintedmagic.common.items.tools;
import taintedmagic.common.TaintedMagic;
import taintedmagic.common.registry.ItemRegistry;
import thaumcraft.api.IRepairable;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemSpade;
import net.minecraft.item.ItemStack;
public class ItemShadowmetalSpade extends ItemSpade implements IRepairable
{
public ItemShadowmetalSpade (ToolMaterial m)
{
super(m);
this.setCreativeTab(TaintedMagic.tabTaintedMagic);
this.setTextureName("taintedmagic:ItemShadowmetalSpade");
this.setUnlocalizedName("ItemShadowmetalSpade");
}
public boolean getIsRepairable (ItemStack s, ItemStack s2)
{
return (s2.isItemEqual(new ItemStack(ItemRegistry.ItemMaterial)) && s2.getItemDamage() == 0) ? true : super.getIsRepairable(s, s2);
}
@Override
public EnumRarity getRarity (ItemStack s)
{
return EnumRarity.uncommon;
}
}