Search in sources :

Example 1 with CommandButterfly

use of forestry.lepidopterology.commands.CommandButterfly in project ForestryMC by ForestryMC.

the class ModuleLepidopterology method doInit.

@Override
public void doInit() {
    BlockRegistryLepidopterology blocks = getBlocks();
    GameRegistry.registerTileEntity(TileCocoon.class, "forestry.Cocoon");
    ModuleCore.rootCommand.addChildCommand(new CommandButterfly());
    ResourceLocation butterflyResourceLocation = new ResourceLocation(Constants.MOD_ID, "butterflyGE");
    EntityUtil.registerEntity(butterflyResourceLocation, EntityButterfly.class, "butterflyGE", 0, 0x000000, 0xffffff, 50, 1, true);
    MothDefinition.initMoths();
    ButterflyDefinition.initButterflies();
    ButterflyAlleles.createLoot();
    MinecraftForge.EVENT_BUS.post(new AlleleSpeciesRegisterEvent(ButterflyManager.butterflyRoot, IAlleleButterflySpecies.class));
    blocks.butterflyChest.init();
    if (spawnButterflysFromLeaves) {
        TreeManager.treeRoot.registerLeafTickHandler(new ButterflySpawner());
    }
    RecipeSorter.register("forestry:lepidopterologymating", MatingRecipe.class, RecipeSorter.Category.SHAPELESS, "before:minecraft:shapeless");
}
Also used : AlleleSpeciesRegisterEvent(forestry.api.genetics.AlleleSpeciesRegisterEvent) BlockRegistryLepidopterology(forestry.lepidopterology.blocks.BlockRegistryLepidopterology) ResourceLocation(net.minecraft.util.ResourceLocation) CommandButterfly(forestry.lepidopterology.commands.CommandButterfly) IAlleleButterflySpecies(forestry.api.lepidopterology.IAlleleButterflySpecies)

Aggregations

AlleleSpeciesRegisterEvent (forestry.api.genetics.AlleleSpeciesRegisterEvent)1 IAlleleButterflySpecies (forestry.api.lepidopterology.IAlleleButterflySpecies)1 BlockRegistryLepidopterology (forestry.lepidopterology.blocks.BlockRegistryLepidopterology)1 CommandButterfly (forestry.lepidopterology.commands.CommandButterfly)1 ResourceLocation (net.minecraft.util.ResourceLocation)1