use of forestry.api.genetics.IAlleleHandler in project ForestryMC by ForestryMC.
the class AlleleRegistry method registerAllele.
@Override
public void registerAllele(IAllele allele, IChromosomeType... chromosomeTypes) {
addValidAlleleTypes(allele, chromosomeTypes);
alleleMap.put(allele.getUID(), allele);
if (allele instanceof IAlleleSpecies) {
IClassification branch = ((IAlleleSpecies) allele).getBranch();
branch.addMemberSpecies((IAlleleSpecies) allele);
}
for (IAlleleHandler handler : this.alleleHandlers) {
handler.onRegisterAllele(allele);
}
}
Aggregations