public class BestArmor<p_77656_1_> extends ItemArmor{
private String texturePath = "weaponmod:textures/model/armor/";
public BestArmor(int id, int armorType) {
super(BaseWeaponMod.ANG1, id, armorType);
this.setCreativeTab(BaseWeaponMod.tabWeapon1);
this.setMaxStackSize(1);
this.setTextureName();
this.setMaxDamage(0);
}
public void setTextureName ()
{
if(armorType == 0||armorType == 1||armorType == 3){
this.texturePath += "draconic_layer_" + 1 + ".png";
}
else {
this.texturePath += "draconic_layer_" + 2 + ".png";
}
}
@Override
public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type){
return this.texturePath;
}
@Override
public void onArmorTick(World world, EntityPlayer player, ItemStack itemstack) {
if(player.inventory.armorItemInSlot(3) != null && player.inventory.armorItemInSlot(3).getItem() == BaseWeaponMod.bestarmorhelmet
&& player.inventory.armorItemInSlot(2) != null && player.inventory.armorItemInSlot(2).getItem() == BaseWeaponMod.bestarmorplate
&& player.inventory.armorItemInSlot(1) != null && player.inventory.armorItemInSlot(1).getItem() == BaseWeaponMod.bestarmorpants
&& player.inventory.armorItemInSlot(0) != null && player.inventory.armorItemInSlot(0).getItem() == BaseWeaponMod.bestarmorboots) {
player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 3, 3, true));
}
}
}