use of forestry.apiculture.genetics.Bee in project ForestryMC by ForestryMC.
the class ItemInventoryImprinter method getSelectedBee.
public IBee getSelectedBee() {
IBeeRoot beeRoot = BeeManager.beeRoot;
List<IBee> individualTemplates = beeRoot.getIndividualTemplates();
Map<String, IAllele[]> genomeTemplates = beeRoot.getGenomeTemplates();
IAllele[] templateActive = genomeTemplates.get(individualTemplates.get(primaryIndex).getIdent());
IAllele[] templateInactive = genomeTemplates.get(individualTemplates.get(secondaryIndex).getIdent());
IBeeGenome genome = beeRoot.templateAsGenome(templateActive, templateInactive);
return new Bee(genome);
}
Aggregations