Search in sources :

Example 1 with BeeMutationFactory

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

the class ModuleApiculture method setupAPI.

@Override
public void setupAPI() {
    HiveManager.hiveRegistry = hiveRegistry = new HiveRegistry();
    HiveManager.genHelper = new HiveGenHelper();
    FlowerManager.flowerRegistry = new FlowerRegistry();
    BeeManager.commonVillageBees = new ArrayList<>();
    BeeManager.uncommonVillageBees = new ArrayList<>();
    BeeManager.beeFactory = new BeeFactory();
    BeeManager.beeMutationFactory = new BeeMutationFactory();
    BeeManager.jubilanceFactory = new JubilanceFactory();
    BeeManager.armorApiaristHelper = new ArmorApiaristHelper();
    // Init bee interface
    BeeManager.beeRoot = new BeeRoot();
    AlleleManager.alleleRegistry.registerSpeciesRoot(BeeManager.beeRoot);
    // Modes
    BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.easy);
    BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.normal);
    BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.hard);
    BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.hardcore);
    BeeManager.beeRoot.registerBeekeepingMode(BeekeepingMode.insane);
    // Capabilities
    CapabilityManager.INSTANCE.register(IArmorApiarist.class, new NullStorage<>(), () -> ArmorApiarist.INSTANCE);
}
Also used : BeeFactory(forestry.apiculture.genetics.BeeFactory) JubilanceFactory(forestry.apiculture.genetics.JubilanceFactory) FlowerRegistry(forestry.apiculture.flowers.FlowerRegistry) HiveGenHelper(forestry.apiculture.worldgen.HiveGenHelper) BeeMutationFactory(forestry.apiculture.genetics.BeeMutationFactory) HiveRegistry(forestry.apiculture.worldgen.HiveRegistry) BeeRoot(forestry.apiculture.genetics.BeeRoot)

Aggregations

FlowerRegistry (forestry.apiculture.flowers.FlowerRegistry)1 BeeFactory (forestry.apiculture.genetics.BeeFactory)1 BeeMutationFactory (forestry.apiculture.genetics.BeeMutationFactory)1 BeeRoot (forestry.apiculture.genetics.BeeRoot)1 JubilanceFactory (forestry.apiculture.genetics.JubilanceFactory)1 HiveGenHelper (forestry.apiculture.worldgen.HiveGenHelper)1 HiveRegistry (forestry.apiculture.worldgen.HiveRegistry)1