use of forestry.arboriculture.genetics.TreeMutationFactory 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);
}
Aggregations