I am facing a very strange problem
I created a armor and it worked perfectly in eclipse.
But when i built that the texture of the armors were not loading.
Here is my armor class
public class BlazeArmor extends ItemArmor {
public String TexturePath = Refrence.MODID + ":" + "/textures/armors/" ;
public BlazeArmor(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int part4, String type) {
super(par1, par2EnumArmorMaterial, par3, part4);
this.setCreativeTab(CreativeTabs.tabCombat);
this.setMaxStackSize(1);
this.setTextureName(type, part4);
}
public void setTextureName( String Type, int part ){
if( armorType == 0 || armorType == 1 || armorType == 3 ){
this.TexturePath += "Armor_1.png";
}
else{
this.TexturePath += "Armor_2.png";
}
}
//
public String getArmorTexture( ItemStack itemstack, Entity entity, int slot, int layer){
return this.TexturePath;
}
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister register){
this.itemIcon = register.registerIcon( Refrence.MODID + ":" + this.getUnlocalizedName().substring( 5 ) );
}
}