mirror of
https://github.com/GTNewHorizons/Tainted-Magic.git
synced 2026-11-19 03:39:27 +00:00
32 lines
979 B
Java
32 lines
979 B
Java
package taintedmagic.common.items.tools;
|
|
|
|
import net.minecraft.item.EnumRarity;
|
|
import net.minecraft.item.ItemSpade;
|
|
import net.minecraft.item.ItemStack;
|
|
import taintedmagic.common.TaintedMagic;
|
|
import taintedmagic.common.registry.ItemRegistry;
|
|
import thaumcraft.api.IRepairable;
|
|
|
|
public class ItemShadowmetalSpade extends ItemSpade implements IRepairable
|
|
{
|
|
public ItemShadowmetalSpade (ToolMaterial material)
|
|
{
|
|
super(material);
|
|
this.setCreativeTab(TaintedMagic.tabTM);
|
|
this.setTextureName("taintedmagic:ItemShadowmetalSpade");
|
|
this.setUnlocalizedName("ItemShadowmetalSpade");
|
|
}
|
|
|
|
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 stack)
|
|
{
|
|
return EnumRarity.uncommon;
|
|
}
|
|
}
|