Search in sources :

Example 1 with BeeBranchDefinition

use of forestry.apiculture.genetics.BeeBranchDefinition in project ForestryMC by ForestryMC.

the class ModuleApiculture method createAlleles.

private static void createAlleles() {
    IClassification hymnoptera = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.ORDER, "hymnoptera", "Hymnoptera");
    AlleleManager.alleleRegistry.getClassification("class.insecta").addMemberGroup(hymnoptera);
    IClassification apidae = AlleleManager.alleleRegistry.createAndRegisterClassification(EnumClassLevel.FAMILY, "apidae", "Apidae");
    hymnoptera.addMemberGroup(apidae);
    for (BeeBranchDefinition beeBranch : BeeBranchDefinition.values()) {
        apidae.addMemberGroup(beeBranch.getBranch());
    }
    AlleleEffects.registerAlleles();
}
Also used : BeeBranchDefinition(forestry.apiculture.genetics.BeeBranchDefinition) IClassification(forestry.api.genetics.IClassification)

Aggregations

IClassification (forestry.api.genetics.IClassification)1 BeeBranchDefinition (forestry.apiculture.genetics.BeeBranchDefinition)1