Examples of registerMutation()


Examples of forestry.api.apiculture.IApiaristTracker.registerMutation()

      float chance = 0;

      if ((chance = mutation.getChance(housing, allele0, allele1, genome0, genome1)) > 0)
        if (world.rand.nextFloat()*100 < chance) {
          IApiaristTracker breedingTracker = PluginApiculture.beeInterface.getBreedingTracker(world, housing.getOwnerName());
          breedingTracker.registerMutation(mutation);
          return PluginApiculture.beeInterface.templateAsChromosomes(mutation.getTemplate());
        }
    }

    return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.