public void bindTexture(TextureManager var1) {
      this.textures = var1;
      if(this.newTexture != null) {
         BufferedImage var2 = this.newTexture;
         int[] var3 = new int[512];
         var2.getRGB(32, 0, 32, 16, var3, 0, 32);
         int var5 = 0;

         boolean var10001;
         while(true) {
            if(var5 >= var3.length) {
               var10001 = false;
               break;
            }

            if(var3[var5] >>> 24 < 128) {
               var10001 = true;
               break;
            }

            ++var5;
         }

         this.hasHair = var10001;
         this.a = var1.load(this.newTexture);
         this.newTexture = null;
      }

      if(this.a < 0) {
         GL11.glBindTexture(3553, var1.load("/char.png"));
      } else {
         GL11.glBindTexture(3553, this.a);
      }
   }