package com.zivilon.cinder_loe.items;

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

public class LoEPike extends LOTRItemPike {
    public Item repair_item;

    public LoEPike(LOTRMaterial material) {
        this(material, (Item) null);
    }
    public LoEPike(LOTRMaterial material, Block repair_block) {
        this(material, Item.getItemFromBlock(repair_block));
    }
    public LoEPike(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;
    }
}
