示例#1
0
  /**
   * This function is used when two same-species animals in 'love mode' breed to generate the new
   * baby animal.
   */
  public EntityAnimal spawnBabyAnimal(EntityAnimal par1EntityAnimal) {
    EntityOcelot entityocelot = new EntityOcelot(worldObj);

    if (isTamed()) {
      entityocelot.setOwner(getOwnerName());
      entityocelot.setTamed(true);
      entityocelot.func_48147_c(func_48148_ad());
    }

    return entityocelot;
  }