Esempio n. 1
0
 /** Returns true if the mob is currently able to mate with the specified mob. */
 public boolean canMateWith(EntityAnimal par1EntityAnimal) {
   if (par1EntityAnimal == this) {
     return false;
   } else if (!this.isTamed()) {
     return false;
   } else if (!(par1EntityAnimal instanceof EntityWolf)) {
     return false;
   } else {
     EntityWolf entitywolf = (EntityWolf) par1EntityAnimal;
     return !entitywolf.isTamed()
         ? false
         : (entitywolf.isSitting() ? false : this.isInLove() && entitywolf.isInLove());
   }
 }