protected boolean setArmorModel(EntityPlayer var1, int var2, float var3) {
      ItemStack var4 = var1.inventory.armorItemInSlot(3 - var2);
      if(var4 != null) {
         Item var5 = var4.getItem();
         if(var5 instanceof ItemArmor) {
            ItemArmor var6 = (ItemArmor)var5;
            this.loadTexture("/assets/armor/" + armorFilenamePrefix[var6.renderIndex] + "_" + (var2 == 2?2:1) + ".png");
            ModelBiped var7 = var2 == 2?this.modelArmor:this.modelArmorChestplate;
            var7.bipedHead.showModel = var2 == 0;
            var7.bipedHeadwear.showModel = var2 == 0;
            var7.bipedBody.showModel = var2 == 1 || var2 == 2;
            var7.bipedRightArm.showModel = var2 == 1;
            var7.bipedLeftArm.showModel = var2 == 1;
            var7.bipedRightLeg.showModel = var2 == 2 || var2 == 3;
            var7.bipedLeftLeg.showModel = var2 == 2 || var2 == 3;
            this.setRenderPassModel(var7);
            return true;
         }
      }

      return false;
   }