Пример #1
0
 public void t_() {
   try {
     super.t_();
     if (deathCounter-- <= 0) {
       die();
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
Пример #2
0
 public boolean attack(Entity entity) {
   boolean flag = false;
   try {
     this.world.broadcastEntityEffect(this, (byte) 4);
     flag = super.attack(entity);
     if (Configuration.MyPet.IronGolem.CAN_THROW_UP && flag) {
       entity.motY += 0.4000000059604645D;
       this.world.makeSound(this, "mob.irongolem.throw", 1.0F, 1.0F);
     }
   } catch (Exception e) {
     e.printStackTrace();
   }
   return flag;
 }