Пример #1
0
  public void func_82399_a(
      EntityWitherSkull par1EntityWitherSkull,
      double par2,
      double par4,
      double par6,
      float par8,
      float par9) {
    GL11.glPushMatrix();
    GL11.glDisable(GL11.GL_CULL_FACE);
    float f2 =
        this.func_82400_a(
            par1EntityWitherSkull.prevRotationYaw, par1EntityWitherSkull.rotationYaw, par9);
    float f3 =
        par1EntityWitherSkull.prevRotationPitch
            + (par1EntityWitherSkull.rotationPitch - par1EntityWitherSkull.prevRotationPitch)
                * par9;
    GL11.glTranslatef((float) par2, (float) par4, (float) par6);
    float f4 = 0.0625F;
    GL11.glEnable(GL12.GL_RESCALE_NORMAL);
    GL11.glScalef(-1.0F, -1.0F, 1.0F);
    GL11.glEnable(GL11.GL_ALPHA_TEST);

    if (par1EntityWitherSkull.isInvulnerable()) {
      this.loadTexture("/mob/wither_invul.png");
    } else {
      this.loadTexture("/mob/wither.png");
    }

    this.skeletonHeadModel.render(par1EntityWitherSkull, 0.0F, 0.0F, 0.0F, f2, f3, f4);
    GL11.glPopMatrix();
  }