Example #1
0
 public void func_40613_a(
     EntityLiving p_40613_1_, EntityLiving p_40613_2_, int p_40613_3_, double p_40613_4_) {
   if (field_35670_H == field_35685_h.field_35670_H && !p_40613_2_.func_40122_aP()
       || field_35670_H == field_35686_i.field_35670_H && p_40613_2_.func_40122_aP()) {
     int i = (int) (p_40613_4_ * (double) (6 << p_40613_3_) + 0.5D);
     p_40613_2_.func_432_b(i);
   } else if (field_35670_H == field_35686_i.field_35670_H && !p_40613_2_.func_40122_aP()
       || field_35670_H == field_35685_h.field_35670_H && p_40613_2_.func_40122_aP()) {
     int j = (int) (p_40613_4_ * (double) (6 << p_40613_3_) + 0.5D);
     if (p_40613_1_ == null) {
       p_40613_2_.func_396_a(DamageSource.field_35545_l, j);
     } else {
       p_40613_2_.func_396_a(DamageSource.func_40542_b(p_40613_2_, p_40613_1_), j);
     }
   }
 }
Example #2
0
 public void func_35662_a(EntityLiving p_35662_1_, int p_35662_2_) {
   if (field_35670_H == field_35681_l.field_35670_H) {
     if (p_35662_1_.func_40114_aH() < p_35662_1_.func_40117_c()) {
       p_35662_1_.func_432_b(1);
     }
   } else if (field_35670_H == field_35689_u.field_35670_H) {
     if (p_35662_1_.func_40114_aH() > 1) {
       p_35662_1_.func_396_a(DamageSource.field_35545_l, 1);
     }
   } else if (field_35670_H == field_35691_s.field_35670_H
       && (p_35662_1_ instanceof EntityPlayer)) {
     ((EntityPlayer) p_35662_1_).func_35198_d(0.025F * (float) (p_35662_2_ + 1));
   } else if (field_35670_H == field_35685_h.field_35670_H && !p_35662_1_.func_40122_aP()
       || field_35670_H == field_35686_i.field_35670_H && p_35662_1_.func_40122_aP()) {
     p_35662_1_.func_432_b(6 << p_35662_2_);
   } else if (field_35670_H == field_35686_i.field_35670_H && !p_35662_1_.func_40122_aP()
       || field_35670_H == field_35685_h.field_35670_H && p_35662_1_.func_40122_aP()) {
     p_35662_1_.func_396_a(DamageSource.field_35545_l, 6 << p_35662_2_);
   }
 }