package erebus.items; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemStack; import erebus.ModItems; import erebus.ModMaterials; import erebus.ModTabs; import erebus.items.ItemMaterials.EnumType; public class ItemPickaxeJade extends ItemPickaxe { public ItemPickaxeJade() { super(ModMaterials.TOOL_JADE); setCreativeTab(ModTabs.GEAR); } @Override public boolean getIsRepairable(ItemStack stack, ItemStack material) { return material.getItem() == ModItems.MATERIALS && material.getItemDamage() == EnumType.JADE.ordinal(); } }