This commit is contained in:
John Yorke committed 2020-10-26 20:43:15 -03:00
1 parent cbb61ebcbe
commit 82de9e1aa0
74 files changed
+3485 -3415

No files matched your search

@@ -9,22 +9,23 @@ import thaumcraft.api.IRepairable;
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 ItemShadowmetalSpade (ToolMaterial material)
{
super(material);
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);
}
public boolean getIsRepairable (ItemStack stack, ItemStack repairItem)
{
return repairItem.isItemEqual(new ItemStack(ItemRegistry.ItemMaterial, 1, 0)) ? true
: super.getIsRepairable(stack, repairItem);
}
@Override
public EnumRarity getRarity (ItemStack s)
{
return EnumRarity.uncommon;
}
@Override
public EnumRarity getRarity (ItemStack stack)
{
return EnumRarity.uncommon;
}
}