package wehavecookies56.kk.item;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import wehavecookies56.kk.KingdomKeys;
public class OrganizationArmor extends ItemArmor{
private String armorFile;
private String name;
public OrganizationArmor(ArmorMaterial par2EnumArmorMaterial, int par3, int par4, String armorFile, String name) {
super(par2EnumArmorMaterial, par3, par4);
this.armorFile = armorFile; // sets this instance of the armor file to what's in the constructor
this.setCreativeTab(KingdomKeys.KKTAB);
this.name = name;
this.setUnlocalizedName(this.name);
}
@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
if(slot == 2)return "kk:textures/armor/ORGANIZATION_2.png";
else return "kk:textures/armor/ORGANIZATION_1.png";
}
@Override
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack)
{
return AddedItems.DarkLeather == par2ItemStack.getItem() ? true :
super.getIsRepairable(par1ItemStack, par2ItemStack);
}
}