Search in sources :

Example 1 with BlockCandle

use of forestry.apiculture.gadgets.BlockCandle in project ForestryMC by ForestryMC.

the class PluginApiculture method preInit.

@Override
public void preInit() {
    super.preInit();
    MinecraftForge.EVENT_BUS.register(this);
    ForestryBlock.apiculture.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "apiculture");
    ForestryBlock.apiculture.block().setCreativeTab(Tabs.tabApiculture);
    ForestryBlock.apiculture.block().setHarvestLevel("axe", 0);
    definitionApiary = ((BlockBase) ForestryBlock.apiculture.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_APIARY_META, "forestry.Apiary", TileApiary.class, ShapedRecipeCustom.createShapedRecipe(ForestryBlock.apiculture.getItemStack(1, Defaults.DEFINITION_APIARY_META), "XXX", "#C#", "###", 'X', "slabWood", '#', "plankWood", 'C', ForestryItem.impregnatedCasing)).setFaces(0, 1, 2, 2, 4, 4, 0, 7));
    definitionChest = ((BlockBase) ForestryBlock.apiculture.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_APIARISTCHEST_META, "forestry.ApiaristChest", TileApiaristChest.class, ShapedRecipeCustom.createShapedRecipe(ForestryBlock.apiculture.getItemStack(1, Defaults.DEFINITION_APIARISTCHEST_META), " # ", "XYX", "XXX", '#', Blocks.glass, 'X', "beeComb", 'Y', Blocks.chest)).setFaces(0, 1, 2, 3, 4, 4));
    definitionBeehouse = ((BlockBase) ForestryBlock.apiculture.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_BEEHOUSE_META, "forestry.Beehouse", TileBeehouse.class, ShapedRecipeCustom.createShapedRecipe(ForestryBlock.apiculture.getItemStack(1, Defaults.DEFINITION_BEEHOUSE_META), "XXX", "#C#", "###", 'X', "slabWood", '#', "plankWood", 'C', "beeComb")).setFaces(0, 1, 2, 2, 4, 4, 0, 7));
    definitionAnalyzer = ((BlockBase) ForestryBlock.core.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_ANALYZER_META, "forestry.Analyzer", TileAnalyzer.class, PluginApiculture.proxy.getRendererAnalyzer(Defaults.TEXTURE_PATH_BLOCKS + "/analyzer_")));
    ForestryBlock.beehives.registerBlock(new BlockBeehives(), ItemForestryBlock.class, "beehives");
    // Candles
    ForestryBlock.candle.registerBlock(new BlockCandle(), ItemCandleBlock.class, "candle");
    ForestryBlock.stump.registerBlock(new BlockStump(), ItemForestryBlock.class, "stump");
    // Alveary and Components
    ForestryBlock.alveary.registerBlock(new BlockAlveary(), ItemAlvearyBlock.class, "alveary");
    ForestryBlock.alveary.block().setHarvestLevel("axe", 0);
    // Add triggers
    if (PluginManager.Module.BUILDCRAFT_STATEMENTS.isEnabled()) {
        ApicultureTriggers.initialize();
    }
    if (Config.enableVillager) {
        // Register village components with the Structure registry.
        VillageHandlerApiculture.registerVillageComponents();
    }
    // Commands
    PluginCore.rootCommand.addChildCommand(new CommandBee());
}
Also used : TileApiaristChest(forestry.apiculture.gadgets.TileApiaristChest) TileBeehouse(forestry.apiculture.gadgets.TileBeehouse) BlockStump(forestry.apiculture.gadgets.BlockStump) BlockAlveary(forestry.apiculture.gadgets.BlockAlveary) MachineDefinition(forestry.core.gadgets.MachineDefinition) BlockBase(forestry.core.gadgets.BlockBase) BlockBeehives(forestry.apiculture.gadgets.BlockBeehives) BlockCandle(forestry.apiculture.gadgets.BlockCandle) TileApiary(forestry.apiculture.gadgets.TileApiary) CommandBee(forestry.apiculture.commands.CommandBee)

Aggregations

CommandBee (forestry.apiculture.commands.CommandBee)1 BlockAlveary (forestry.apiculture.gadgets.BlockAlveary)1 BlockBeehives (forestry.apiculture.gadgets.BlockBeehives)1 BlockCandle (forestry.apiculture.gadgets.BlockCandle)1 BlockStump (forestry.apiculture.gadgets.BlockStump)1 TileApiaristChest (forestry.apiculture.gadgets.TileApiaristChest)1 TileApiary (forestry.apiculture.gadgets.TileApiary)1 TileBeehouse (forestry.apiculture.gadgets.TileBeehouse)1 BlockBase (forestry.core.gadgets.BlockBase)1 MachineDefinition (forestry.core.gadgets.MachineDefinition)1