Ejemplo n.º 1
0
 protected void fall(float f) {
   if (capabilities.allowFlying) {
     return;
   }
   if (f >= 2.0F) {
     addStat(StatList.distanceFallenStat, (int) Math.round((double) f * 100D));
   }
   super.fall(f);
 }
Ejemplo n.º 2
0
  /** Called when the mob is falling. Calculates and applies fall damage. */
  protected void fall(float par1) {
    if (!this.capabilities.allowFlying) {
      if (par1 >= 2.0F) {
        this.addStat(StatList.distanceFallenStat, (int) Math.round((double) par1 * 100.0D));
      }

      super.fall(par1);
    }
  }