protected void renderName(EntityPlayer var1, double var2, double var4, double var6) {
      if(Minecraft.isGuiEnabled() && var1 != this.renderManager.livingPlayer) {
         float var8 = 1.6F;
         float var9 = 0.016666668F * var8;
         float var10 = var1.getDistanceToEntity(this.renderManager.livingPlayer);
         float var11 = var1.isSneaking()?32.0F:64.0F;
         if(var10 < var11) {
            String var12 = var1.username;
            if(!var1.isSneaking()) {
               if(var1.isPlayerSleeping()) {
                  this.renderLivingLabel(var1, var12, var2, var4 - 1.5D, var6, 64);
               } else {
                  this.renderLivingLabel(var1, var12, var2, var4, var6, 64);
               }
            } else {
               FontRenderer var13 = this.getFontRendererFromRenderManager();
               GL11.glPushMatrix();
               GL11.glTranslatef((float)var2 + 0.0F, (float)var4 + 2.3F, (float)var6);
               GL11.glNormal3f(0.0F, 1.0F, 0.0F);
               GL11.glRotatef(-this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);
               GL11.glRotatef(this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F);
               GL11.glScalef(-var9, -var9, var9);
               GL11.glDisable(2896 /*GL_LIGHTING*/);
               GL11.glTranslatef(0.0F, 0.25F / var9, 0.0F);
               GL11.glDepthMask(false);
               GL11.glEnable(3042 /*GL_BLEND*/);
               GL11.glBlendFunc(770, 771);
               Tessellator var14 = Tessellator.instance;
               GL11.glDisable(3553 /*GL_TEXTURE_2D*/);
               var14.startDrawingQuads();
               int var15 = var13.getStringWidth(var12) / 2;
               var14.setColorRGBA_F(0.0F, 0.0F, 0.0F, 0.25F);
               var14.addVertex((double)(-var15 - 1), -1.0D, 0.0D);
               var14.addVertex((double)(-var15 - 1), 8.0D, 0.0D);
               var14.addVertex((double)(var15 + 1), 8.0D, 0.0D);
               var14.addVertex((double)(var15 + 1), -1.0D, 0.0D);
               var14.draw();
               GL11.glEnable(3553 /*GL_TEXTURE_2D*/);
               GL11.glDepthMask(true);
               var13.drawString(var12, -var13.getStringWidth(var12) / 2, 0, 553648127);
               GL11.glEnable(2896 /*GL_LIGHTING*/);
               GL11.glDisable(3042 /*GL_BLEND*/);
               GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
               GL11.glPopMatrix();
            }
         }
      }

   }