Не накладывается текстура на броню

Версия Minecraft
1.7.10
32
0
Привет. Не могу решить проблему с текстурой на броню. В коде вроде нормально всё, а текстуры нету.

Java:
package ArmorMod;

import java.awt.List;

import ArmorModMain.MainTestArmor;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
import net.minecraftforge.common.util.EnumHelper;

public class PrototipeArmor extends ItemArmor {

   private String texturePath = "ArmorMod:textures/model/armor/";
  
   public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack) {
          if(super.armorType == 0) {
             player.addPotionEffect(new PotionEffect(16, 1, 1));
          }
   }
   static ArmorMaterial PrototipeMAT = EnumHelper.addArmorMaterial("PrototipeMAT", 75, new int[]{2, 6, 4, 3}, 0);


   public PrototipeArmor(int id, int armorType) {
      super(PrototipeMAT, id, armorType);
      this.setCreativeTab(MainTestArmor.tabArmorMod);
      this.setMaxStackSize(1);
      this.setTextureName();
      
   }

   public void setTextureName() {
      if(super.armorType != 0 && super.armorType != 1 && super.armorType != 3) {
         this.texturePath = this.texturePath + "ArmorMod_2.png";
      } else {
         this.texturePath = this.texturePath + "ArmorMod_1.png";
      }

   }

   public String getArmorTexture(ItemStack itemstack, Entity entity, int slot, String type) {
      return this.texturePath;
   }

}


Может что-то подскажите? Может дело в коде?
 
Решение

timaxa007

Модератор
5,831
409
672
1,159
38
544
Вот тебе рабочий мануал по броне. Сравни с тем что у тебя.
 
Сверху