Example #1
0
 @SideOnly(Side.CLIENT)
 public float[] func_76560_a(float p_76560_1_, float p_76560_2_) {
   float var3 = 0.4F;
   float var4 = MathHelper.func_76134_b(p_76560_1_ * 3.1415927F * 2.0F) - 0.0F;
   float var5 = -0.0F;
   if (var4 >= var5 - var3 && var4 <= var5 + var3) {
     float var6 = (var4 - var5) / var3 * 0.5F + 0.5F;
     float var7 = 1.0F - (1.0F - MathHelper.func_76126_a(var6 * 3.1415927F)) * 0.99F;
     var7 *= var7;
     this.field_76580_h[0] = var6 * 0.3F + 0.7F;
     this.field_76580_h[1] = var6 * var6 * 0.7F + 0.2F;
     this.field_76580_h[2] = var6 * var6 * 0.0F + 0.2F;
     this.field_76580_h[3] = var7;
     return this.field_76580_h;
   } else {
     return null;
   }
 }
Example #2
0
  @SideOnly(Side.CLIENT)
  public Vec3 func_76562_b(float p_76562_1_, float p_76562_2_) {
    float var3 = MathHelper.func_76134_b(p_76562_1_ * 3.1415927F * 2.0F) * 2.0F + 0.5F;
    if (var3 < 0.0F) {
      var3 = 0.0F;
    }

    if (var3 > 1.0F) {
      var3 = 1.0F;
    }

    float var4 = 0.7529412F;
    float var5 = 0.84705883F;
    float var6 = 1.0F;
    var4 *= var3 * 0.94F + 0.06F;
    var5 *= var3 * 0.94F + 0.06F;
    var6 *= var3 * 0.91F + 0.09F;
    return Vec3.func_72437_a().func_72345_a((double) var4, (double) var5, (double) var6);
  }
Example #3
0
  @SideOnly(Side.CLIENT)
  public Vec3 func_76562_b(float p_76562_1_, float p_76562_2_) {
    int var3 = 10518688;
    float var4 = MathHelper.func_76134_b(p_76562_1_ * 3.1415927F * 2.0F) * 2.0F + 0.5F;
    if (var4 < 0.0F) {
      var4 = 0.0F;
    }

    if (var4 > 1.0F) {
      var4 = 1.0F;
    }

    float var5 = (float) (var3 >> 16 & 255) / 255.0F;
    float var6 = (float) (var3 >> 8 & 255) / 255.0F;
    float var7 = (float) (var3 & 255) / 255.0F;
    var5 *= var4 * 0.0F + 0.15F;
    var6 *= var4 * 0.0F + 0.15F;
    var7 *= var4 * 0.0F + 0.15F;
    return Vec3.func_72437_a().func_72345_a((double) var5, (double) var6, (double) var7);
  }
Example #4
0
  private boolean func_75529_b() {
    List var1 = this.field_75537_a.field_73010_i;
    Iterator var2 = var1.iterator();

    while (var2.hasNext()) {
      EntityPlayer var3 = (EntityPlayer) var2.next();
      this.field_75531_f =
          this.field_75537_a.field_72982_D.func_75550_a(
              (int) var3.field_70165_t, (int) var3.field_70163_u, (int) var3.field_70161_v, 1);
      if (this.field_75531_f != null
          && this.field_75531_f.func_75567_c() >= 10
          && this.field_75531_f.func_75561_d() >= 20
          && this.field_75531_f.func_75562_e() >= 20) {
        ChunkCoordinates var4 = this.field_75531_f.func_75577_a();
        float var5 = (float) this.field_75531_f.func_75568_b();
        boolean var6 = false;
        int var7 = 0;

        while (true) {
          if (var7 < 10) {
            this.field_75532_g =
                var4.field_71574_a
                    + (int)
                        ((double)
                                (MathHelper.func_76134_b(
                                        this.field_75537_a.field_73012_v.nextFloat()
                                            * 3.1415927F
                                            * 2.0F)
                                    * var5)
                            * 0.9D);
            this.field_75538_h = var4.field_71572_b;
            this.field_75539_i =
                var4.field_71573_c
                    + (int)
                        ((double)
                                (MathHelper.func_76126_a(
                                        this.field_75537_a.field_73012_v.nextFloat()
                                            * 3.1415927F
                                            * 2.0F)
                                    * var5)
                            * 0.9D);
            var6 = false;
            Iterator var8 = this.field_75537_a.field_72982_D.func_75540_b().iterator();

            while (var8.hasNext()) {
              Village var9 = (Village) var8.next();
              if (var9 != this.field_75531_f
                  && var9.func_75570_a(
                      this.field_75532_g, this.field_75538_h, this.field_75539_i)) {
                var6 = true;
                break;
              }
            }

            if (var6) {
              ++var7;
              continue;
            }
          }

          if (var6) {
            return false;
          }

          Vec3 var10 =
              this.func_75527_a(this.field_75532_g, this.field_75538_h, this.field_75539_i);
          if (var10 != null) {
            this.field_75534_e = 0;
            this.field_75533_d = 20;
            return true;
          }
          break;
        }
      }
    }

    return false;
  }
  public void func_78440_a(float p_78440_1_) {
    float f = field_78451_d + (field_78454_c - field_78451_d) * p_78440_1_;
    EntityClientPlayerMP entityclientplayermp = field_78455_a.field_71439_g;
    float f1 =
        ((EntityPlayer) (entityclientplayermp)).field_70127_C
            + (((EntityPlayer) (entityclientplayermp)).field_70125_A
                    - ((EntityPlayer) (entityclientplayermp)).field_70127_C)
                * p_78440_1_;
    GL11.glPushMatrix();
    GL11.glRotatef(f1, 1.0F, 0.0F, 0.0F);
    GL11.glRotatef(
        ((EntityPlayer) (entityclientplayermp)).field_70126_B
            + (((EntityPlayer) (entityclientplayermp)).field_70177_z
                    - ((EntityPlayer) (entityclientplayermp)).field_70126_B)
                * p_78440_1_,
        0.0F,
        1.0F,
        0.0F);
    RenderHelper.func_74519_b();
    GL11.glPopMatrix();
    if (entityclientplayermp instanceof EntityPlayerSP) {
      EntityClientPlayerMP entityclientplayermp1 = entityclientplayermp;
      float f2 =
          ((EntityPlayerSP) (entityclientplayermp1)).field_71164_i
              + (((EntityPlayerSP) (entityclientplayermp1)).field_71155_g
                      - ((EntityPlayerSP) (entityclientplayermp1)).field_71164_i)
                  * p_78440_1_;
      float f4 =
          ((EntityPlayerSP) (entityclientplayermp1)).field_71163_h
              + (((EntityPlayerSP) (entityclientplayermp1)).field_71154_f
                      - ((EntityPlayerSP) (entityclientplayermp1)).field_71163_h)
                  * p_78440_1_;
      GL11.glRotatef(
          (((EntityPlayer) (entityclientplayermp)).field_70125_A - f2) * 0.1F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(
          (((EntityPlayer) (entityclientplayermp)).field_70177_z - f4) * 0.1F, 0.0F, 1.0F, 0.0F);
    }
    ItemStack itemstack = field_78453_b;
    float f3 =
        field_78455_a.field_71441_e.func_72801_o(
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70165_t),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70163_u),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70161_v));
    f3 = 1.0F;
    int i =
        field_78455_a.field_71441_e.func_72802_i(
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70165_t),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70163_u),
            MathHelper.func_76128_c(((EntityPlayer) (entityclientplayermp)).field_70161_v),
            0);
    int j = i % 0x10000;
    int k = i / 0x10000;
    OpenGlHelper.func_77475_a(OpenGlHelper.field_77476_b, (float) j / 1.0F, (float) k / 1.0F);
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    if (itemstack != null) {
      int l = Item.field_77698_e[itemstack.field_77993_c].func_77620_a(itemstack.func_77960_j(), 0);
      float f8 = (float) (l >> 16 & 0xff) / 255F;
      float f13 = (float) (l >> 8 & 0xff) / 255F;
      float f19 = (float) (l & 0xff) / 255F;
      GL11.glColor4f(f3 * f8, f3 * f13, f3 * f19, 1.0F);
    } else {
      GL11.glColor4f(f3, f3, f3, 1.0F);
    }
    if (itemstack != null && itemstack.field_77993_c == Item.field_77744_bd.field_77779_bT) {
      GL11.glPushMatrix();
      float f5 = 0.8F;
      float f9 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f14 = MathHelper.func_76126_a(f9 * 3.141593F);
      float f20 = MathHelper.func_76126_a(MathHelper.func_76129_c(f9) * 3.141593F);
      GL11.glTranslatef(
          -f20 * 0.4F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(f9) * 3.141593F * 2.0F) * 0.2F,
          -f14 * 0.2F);
      f9 = (1.0F - f1 / 45F) + 0.1F;
      if (f9 < 0.0F) {
        f9 = 0.0F;
      }
      if (f9 > 1.0F) {
        f9 = 1.0F;
      }
      f9 = -MathHelper.func_76134_b(f9 * 3.141593F) * 0.5F + 0.5F;
      GL11.glTranslatef(0.0F, (0.0F * f5 - (1.0F - f) * 1.2F - f9 * 0.5F) + 0.04F, -0.9F * f5);
      GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(f9 * -85F, 0.0F, 0.0F, 1.0F);
      GL11.glEnable(32826);
      GL11.glBindTexture(
          3553,
          field_78455_a.field_71446_o.func_78350_a(
              field_78455_a.field_71439_g.field_70120_cr,
              field_78455_a.field_71439_g.func_70073_O()));
      for (f14 = 0.0F; f14 < 2.0F; f14++) {
        f20 = f14 * 2.0F - 1.0F;
        GL11.glPushMatrix();
        GL11.glTranslatef(-0F, -0.6F, 1.1F * f20);
        GL11.glRotatef(-45F * f20, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(-90F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(59F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(-65F * f20, 0.0F, 1.0F, 0.0F);
        Render render = RenderManager.field_78727_a.func_78713_a(field_78455_a.field_71439_g);
        RenderPlayer renderplayer = (RenderPlayer) render;
        float f30 = 1.0F;
        GL11.glScalef(f30, f30, f30);
        renderplayer.func_77106_b();
        GL11.glPopMatrix();
      }

      f14 = entityclientplayermp.func_70678_g(p_78440_1_);
      f20 = MathHelper.func_76126_a(f14 * f14 * 3.141593F);
      float f25 = MathHelper.func_76126_a(MathHelper.func_76129_c(f14) * 3.141593F);
      GL11.glRotatef(-f20 * 20F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f25 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-f25 * 80F, 1.0F, 0.0F, 0.0F);
      float f28 = 0.38F;
      GL11.glScalef(f28, f28, f28);
      GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
      GL11.glTranslatef(-1F, -1F, 0.0F);
      float f31 = 0.015625F;
      GL11.glScalef(f31, f31, f31);
      field_78455_a.field_71446_o.func_78342_b(
          field_78455_a.field_71446_o.func_78341_b("/misc/mapbg.png"));
      Tessellator tessellator = Tessellator.field_78398_a;
      GL11.glNormal3f(0.0F, 0.0F, -1F);
      tessellator.func_78382_b();
      byte byte0 = 7;
      tessellator.func_78374_a(0 - byte0, 128 + byte0, 0.0D, 0.0D, 1.0D);
      tessellator.func_78374_a(128 + byte0, 128 + byte0, 0.0D, 1.0D, 1.0D);
      tessellator.func_78374_a(128 + byte0, 0 - byte0, 0.0D, 1.0D, 0.0D);
      tessellator.func_78374_a(0 - byte0, 0 - byte0, 0.0D, 0.0D, 0.0D);
      tessellator.func_78381_a();
      MapData mapdata = Item.field_77744_bd.func_77873_a(itemstack, field_78455_a.field_71441_e);
      field_78449_f.func_78319_a(field_78455_a.field_71439_g, field_78455_a.field_71446_o, mapdata);
      GL11.glPopMatrix();
    } else if (itemstack != null) {
      GL11.glPushMatrix();
      float f6 = 0.8F;
      if (entityclientplayermp.func_71052_bv() > 0) {
        EnumAction enumaction = itemstack.func_77975_n();
        if (enumaction == EnumAction.eat || enumaction == EnumAction.drink) {
          float f15 = ((float) entityclientplayermp.func_71052_bv() - p_78440_1_) + 1.0F;
          float f21 = 1.0F - f15 / (float) itemstack.func_77988_m();
          float f26 = 1.0F - f21;
          f26 = f26 * f26 * f26;
          f26 = f26 * f26 * f26;
          f26 = f26 * f26 * f26;
          float f29 = 1.0F - f26;
          GL11.glTranslatef(
              0.0F,
              MathHelper.func_76135_e(MathHelper.func_76134_b((f15 / 4F) * 3.141593F) * 0.1F)
                  * (float) ((double) f21 > 0.20000000000000001D ? 1 : 0),
              0.0F);
          GL11.glTranslatef(f29 * 0.6F, -f29 * 0.5F, 0.0F);
          GL11.glRotatef(f29 * 90F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(f29 * 10F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(f29 * 30F, 0.0F, 0.0F, 1.0F);
        }
      } else {
        float f10 = entityclientplayermp.func_70678_g(p_78440_1_);
        float f16 = MathHelper.func_76126_a(f10 * 3.141593F);
        float f22 = MathHelper.func_76126_a(MathHelper.func_76129_c(f10) * 3.141593F);
        GL11.glTranslatef(
            -f22 * 0.4F,
            MathHelper.func_76126_a(MathHelper.func_76129_c(f10) * 3.141593F * 2.0F) * 0.2F,
            -f16 * 0.2F);
      }
      GL11.glTranslatef(0.7F * f6, -0.65F * f6 - (1.0F - f) * 0.6F, -0.9F * f6);
      GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable(32826);
      float f11 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f17 = MathHelper.func_76126_a(f11 * f11 * 3.141593F);
      float f23 = MathHelper.func_76126_a(MathHelper.func_76129_c(f11) * 3.141593F);
      GL11.glRotatef(-f17 * 20F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f23 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(-f23 * 80F, 1.0F, 0.0F, 0.0F);
      float f27 = 0.4F;
      GL11.glScalef(f27, f27, f27);
      if (entityclientplayermp.func_71052_bv() > 0) {
        EnumAction enumaction1 = itemstack.func_77975_n();
        if (enumaction1 == EnumAction.block) {
          GL11.glTranslatef(-0.5F, 0.2F, 0.0F);
          GL11.glRotatef(30F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-80F, 1.0F, 0.0F, 0.0F);
          GL11.glRotatef(60F, 0.0F, 1.0F, 0.0F);
        } else if (enumaction1 == EnumAction.bow) {
          GL11.glRotatef(-18F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-12F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(-8F, 1.0F, 0.0F, 0.0F);
          GL11.glTranslatef(-0.9F, 0.2F, 0.0F);
          float f32 =
              (float) itemstack.func_77988_m()
                  - (((float) entityclientplayermp.func_71052_bv() - p_78440_1_) + 1.0F);
          float f35 = f32 / 20F;
          f35 = (f35 * f35 + f35 * 2.0F) / 3F;
          if (f35 > 1.0F) {
            f35 = 1.0F;
          }
          if (f35 > 0.1F) {
            GL11.glTranslatef(
                0.0F, MathHelper.func_76126_a((f32 - 0.1F) * 1.3F) * 0.01F * (f35 - 0.1F), 0.0F);
          }
          GL11.glTranslatef(0.0F, 0.0F, f35 * 0.1F);
          GL11.glRotatef(-335F, 0.0F, 0.0F, 1.0F);
          GL11.glRotatef(-50F, 0.0F, 1.0F, 0.0F);
          GL11.glTranslatef(0.0F, 0.5F, 0.0F);
          float f37 = 1.0F + f35 * 0.2F;
          GL11.glScalef(1.0F, 1.0F, f37);
          GL11.glTranslatef(0.0F, -0.5F, 0.0F);
          GL11.glRotatef(50F, 0.0F, 1.0F, 0.0F);
          GL11.glRotatef(335F, 0.0F, 0.0F, 1.0F);
        }
      }
      if (itemstack.func_77973_b().func_77629_n_()) {
        GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
      }
      if (itemstack.func_77973_b().func_77623_v()) {
        func_78443_a(entityclientplayermp, itemstack, 0);
        int i1 =
            Item.field_77698_e[itemstack.field_77993_c].func_77620_a(itemstack.func_77960_j(), 1);
        float f33 = (float) (i1 >> 16 & 0xff) / 255F;
        float f36 = (float) (i1 >> 8 & 0xff) / 255F;
        float f38 = (float) (i1 & 0xff) / 255F;
        GL11.glColor4f(f3 * f33, f3 * f36, f3 * f38, 1.0F);
        func_78443_a(entityclientplayermp, itemstack, 1);
      } else {
        func_78443_a(entityclientplayermp, itemstack, 0);
      }
      GL11.glPopMatrix();
    } else {
      GL11.glPushMatrix();
      float f7 = 0.8F;
      float f12 = entityclientplayermp.func_70678_g(p_78440_1_);
      float f18 = MathHelper.func_76126_a(f12 * 3.141593F);
      float f24 = MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F);
      GL11.glTranslatef(
          -f24 * 0.3F,
          MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F * 2.0F) * 0.4F,
          -f18 * 0.4F);
      GL11.glTranslatef(0.8F * f7, -0.75F * f7 - (1.0F - f) * 0.6F, -0.9F * f7);
      GL11.glRotatef(45F, 0.0F, 1.0F, 0.0F);
      GL11.glEnable(32826);
      f12 = entityclientplayermp.func_70678_g(p_78440_1_);
      f18 = MathHelper.func_76126_a(f12 * f12 * 3.141593F);
      f24 = MathHelper.func_76126_a(MathHelper.func_76129_c(f12) * 3.141593F);
      GL11.glRotatef(f24 * 70F, 0.0F, 1.0F, 0.0F);
      GL11.glRotatef(-f18 * 20F, 0.0F, 0.0F, 1.0F);
      GL11.glBindTexture(
          3553,
          field_78455_a.field_71446_o.func_78350_a(
              field_78455_a.field_71439_g.field_70120_cr,
              field_78455_a.field_71439_g.func_70073_O()));
      GL11.glTranslatef(-1F, 3.6F, 3.5F);
      GL11.glRotatef(120F, 0.0F, 0.0F, 1.0F);
      GL11.glRotatef(200F, 1.0F, 0.0F, 0.0F);
      GL11.glRotatef(-135F, 0.0F, 1.0F, 0.0F);
      GL11.glScalef(1.0F, 1.0F, 1.0F);
      GL11.glTranslatef(5.6F, 0.0F, 0.0F);
      Render render1 = RenderManager.field_78727_a.func_78713_a(field_78455_a.field_71439_g);
      RenderPlayer renderplayer1 = (RenderPlayer) render1;
      float f34 = 1.0F;
      GL11.glScalef(f34, f34, f34);
      renderplayer1.func_77106_b();
      GL11.glPopMatrix();
    }
    GL11.glDisable(32826);
    RenderHelper.func_74518_a();
  }
Example #6
0
  public void func_70108_f(Entity p_70108_1_) {
    if (!this.field_70170_p.field_72995_K) {
      if (p_70108_1_ != this.field_70153_n) {
        if (p_70108_1_ instanceof EntityLiving
            && !(p_70108_1_ instanceof EntityPlayer)
            && !(p_70108_1_ instanceof EntityIronGolem)
            && this.func_94087_l() == 0
            && this.field_70159_w * this.field_70159_w + this.field_70179_y * this.field_70179_y
                > 0.01D
            && this.field_70153_n == null
            && p_70108_1_.field_70154_o == null) {
          p_70108_1_.func_70078_a(this);
        }

        double var2 = p_70108_1_.field_70165_t - this.field_70165_t;
        double var4 = p_70108_1_.field_70161_v - this.field_70161_v;
        double var6 = var2 * var2 + var4 * var4;
        if (var6 >= 9.999999747378752E-5D) {
          var6 = (double) MathHelper.func_76133_a(var6);
          var2 /= var6;
          var4 /= var6;
          double var8 = 1.0D / var6;
          if (var8 > 1.0D) {
            var8 = 1.0D;
          }

          var2 *= var8;
          var4 *= var8;
          var2 *= 0.10000000149011612D;
          var4 *= 0.10000000149011612D;
          var2 *= (double) (1.0F - this.field_70144_Y);
          var4 *= (double) (1.0F - this.field_70144_Y);
          var2 *= 0.5D;
          var4 *= 0.5D;
          if (p_70108_1_ instanceof EntityMinecart) {
            double var10 = p_70108_1_.field_70165_t - this.field_70165_t;
            double var12 = p_70108_1_.field_70161_v - this.field_70161_v;
            Vec3 var14 =
                this.field_70170_p.func_82732_R().func_72345_a(var10, 0.0D, var12).func_72432_b();
            Vec3 var15 =
                this.field_70170_p
                    .func_82732_R()
                    .func_72345_a(
                        (double) MathHelper.func_76134_b(this.field_70177_z * 3.1415927F / 180.0F),
                        0.0D,
                        (double) MathHelper.func_76126_a(this.field_70177_z * 3.1415927F / 180.0F))
                    .func_72432_b();
            double var16 = Math.abs(var14.func_72430_b(var15));
            if (var16 < 0.800000011920929D) {
              return;
            }

            double var18 = p_70108_1_.field_70159_w + this.field_70159_w;
            double var20 = p_70108_1_.field_70179_y + this.field_70179_y;
            if (((EntityMinecart) p_70108_1_).func_94087_l() == 2 && this.func_94087_l() != 2) {
              this.field_70159_w *= 0.20000000298023224D;
              this.field_70179_y *= 0.20000000298023224D;
              this.func_70024_g(
                  p_70108_1_.field_70159_w - var2, 0.0D, p_70108_1_.field_70179_y - var4);
              p_70108_1_.field_70159_w *= 0.949999988079071D;
              p_70108_1_.field_70179_y *= 0.949999988079071D;
            } else if (((EntityMinecart) p_70108_1_).func_94087_l() != 2
                && this.func_94087_l() == 2) {
              p_70108_1_.field_70159_w *= 0.20000000298023224D;
              p_70108_1_.field_70179_y *= 0.20000000298023224D;
              p_70108_1_.func_70024_g(this.field_70159_w + var2, 0.0D, this.field_70179_y + var4);
              this.field_70159_w *= 0.949999988079071D;
              this.field_70179_y *= 0.949999988079071D;
            } else {
              var18 /= 2.0D;
              var20 /= 2.0D;
              this.field_70159_w *= 0.20000000298023224D;
              this.field_70179_y *= 0.20000000298023224D;
              this.func_70024_g(var18 - var2, 0.0D, var20 - var4);
              p_70108_1_.field_70159_w *= 0.20000000298023224D;
              p_70108_1_.field_70179_y *= 0.20000000298023224D;
              p_70108_1_.func_70024_g(var18 + var2, 0.0D, var20 + var4);
            }
          } else {
            this.func_70024_g(-var2, 0.0D, -var4);
            p_70108_1_.func_70024_g(var2 / 4.0D, 0.0D, var4 / 4.0D);
          }
        }
      }
    }
  }