public boolean func_48362_b(EntityAnimal par1EntityAnimal) {
   if (par1EntityAnimal == this) {
     return false;
   } else if (!this.isTamed()) {
     return false;
   } else if (!(par1EntityAnimal instanceof EntityOcelot)) {
     return false;
   } else {
     EntityOcelot var2 = (EntityOcelot) par1EntityAnimal;
     return !var2.isTamed() ? false : this.isInLove() && var2.isInLove();
   }
 }
Exemple #2
0
  public boolean mate(EntityAnimal entityanimal) {
    if (entityanimal == this) {
      return false;
    } else if (!this.isTamed()) {
      return false;
    } else if (!(entityanimal instanceof EntityOcelot)) {
      return false;
    } else {
      EntityOcelot entityocelot = (EntityOcelot) entityanimal;

      return !entityocelot.isTamed() ? false : this.ce() && entityocelot.ce();
    }
  }