Package forestry.api.plugin
Interface IChromosomeBuilder<V>
- Type Parameters:
V- The value type stored by this chromosome.
public interface IChromosomeBuilder<V>
Interface for customizing a default chromosome in a karyotype.
-
Method Summary
Modifier and TypeMethodDescriptionsetDefault(Allele<V> allele) Override the default allele of this chromosome that was previously set inIKaryotypeBuilder.set(forestry.api.core.genetics.alleles.IChromosome<V>, forestry.api.core.genetics.alleles.Allele<V>).setWeaklyInherited(boolean weaklyInherited) Sets whether this chromosome is "weakly inherited."
-
Method Details
-
setDefault
Override the default allele of this chromosome that was previously set inIKaryotypeBuilder.set(forestry.api.core.genetics.alleles.IChromosome<V>, forestry.api.core.genetics.alleles.Allele<V>). -
setWeaklyInherited
Sets whether this chromosome is "weakly inherited."If a chromosome is weakly inherited, then its default allele will always be overridden by a non-default allele during inheritance or mutations. An example in Forestry is the temperature and humidity tolerance chromosomes. This ensures that breeding a Common bee using a Modest princess and Savanna drone will produce a Common bee that can survive either in the Savanna or in the Desert, instead of one that can only survive in the plains.
- Parameters:
weaklyInherited- Whether this chromosome should be weakly inherited.
-