Search in sources :

Example 1 with TreeRoot

use of forestry.arboriculture.genetics.TreeRoot in project ForestryMC by ForestryMC.

the class ModuleArboriculture method setupAPI.

@Override
public void setupAPI() {
    TreeManager.treeFactory = new TreeFactory();
    TreeManager.treeMutationFactory = new TreeMutationFactory();
    TreeManager.woodAccess = WoodAccess.getInstance();
    // Init tree interface
    TreeManager.treeRoot = new TreeRoot();
    AlleleManager.alleleRegistry.registerSpeciesRoot(TreeManager.treeRoot);
    // Modes
    TreeManager.treeRoot.registerTreekeepingMode(TreekeepingMode.easy);
    TreeManager.treeRoot.registerTreekeepingMode(TreekeepingMode.normal);
    TreeManager.treeRoot.registerTreekeepingMode(TreekeepingMode.hard);
    TreeManager.treeRoot.registerTreekeepingMode(TreekeepingMode.hardcore);
    TreeManager.treeRoot.registerTreekeepingMode(TreekeepingMode.insane);
    // Capabilities
    CapabilityManager.INSTANCE.register(IArmorNaturalist.class, new NullStorage<>(), () -> ArmorNaturalist.INSTANCE);
}
Also used : TreeFactory(forestry.arboriculture.genetics.TreeFactory) TreeRoot(forestry.arboriculture.genetics.TreeRoot) TreeMutationFactory(forestry.arboriculture.genetics.TreeMutationFactory)

Aggregations

TreeFactory (forestry.arboriculture.genetics.TreeFactory)1 TreeMutationFactory (forestry.arboriculture.genetics.TreeMutationFactory)1 TreeRoot (forestry.arboriculture.genetics.TreeRoot)1