package com.zivilon.cinder_loe.items;

import lotr.common.item.LOTRMaterial;
import lotr.common.item.LOTRItemHammer;
import com.zivilon.cinder_loe.LoECreativeTabs;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

public class LoEHammer extends LOTRItemHammer {
    public Item repair_item;

    public LoEHammer(LOTRMaterial material) {
        this(material, (Item) null);
    }
    public LoEHammer(LOTRMaterial material, Block repair_block) {
        this(material, Item.getItemFromBlock(repair_block));
    }
    public LoEHammer(LOTRMaterial material, Item item) {
        super(material);
        repair_item = item;
        setCreativeTab(LoECreativeTabs.tabCombatLoE);
    }

    @Override
    public boolean getIsRepairable(ItemStack item, ItemStack repair_material) {
        if (repair_material.getItem() == repair_item)
            return true;
        return false;
    }
}
