Package forestry.core.gadgets

Examples of forestry.core.gadgets.BlockBase


    // Pods
    ForestryBlock.pods.registerBlock(new BlockFruitPod(), ItemForestryBlock.class, "pods");

    // Machines
    ForestryBlock.arboriculture.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "arboriculture");
    ForestryBlock.arboriculture.block().setCreativeTab(Tabs.tabArboriculture);

    definitionChest = ((BlockBase) ForestryBlock.arboriculture.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_ARBCHEST_META,
        "forestry.ArbChest", TileArboristChest.class,
        ShapedRecipeCustom.createShapedRecipe(ForestryBlock.arboriculture.getItemStack(1, Defaults.DEFINITION_ARBCHEST_META),
View Full Code Here


  @Override
  public void preInit() {
    super.preInit();

    ForestryBlock.engine.registerBlock(new BlockBase(Material.iron, true), ItemForestryBlock.class, "engine");

    definitionEngineCopper = ((BlockBase) ForestryBlock.engine.block()).addDefinition(new EngineDefinition(Defaults.DEFINITION_ENGINECOPPER_META, "forestry.EngineCopper", EngineCopper.class,
        PluginEnergy.proxy.getRenderDefaultEngine(Defaults.TEXTURE_PATH_BLOCKS + "/engine_copper_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.engine.getItemStack(1, Defaults.DEFINITION_ENGINECOPPER_META),
            "###",
View Full Code Here

    MinecraftForge.EVENT_BUS.register(this);

    createHiveDropArrays();

    ForestryBlock.apiculture.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "apiculture");
    ForestryBlock.apiculture.block().setCreativeTab(Tabs.tabApiculture);

    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",
View Full Code Here

    AlleleManager.climateHelper = new ClimateHelper();
    alleleRegistry.initialize();

    Allele.initialize();

    ForestryBlock.core.registerBlock(new BlockBase(Material.iron, true), ItemForestryBlock.class, "core");

    definitionEscritoire = ((BlockBase) ForestryBlock.core.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_ESCRITOIRE_META, "forestry.Escritoire", TileEscritoire.class,
        Proxies.render.getRenderEscritoire()));

    ForestryBlock.soil.registerBlock(new BlockSoil(), ItemTypedBlock.class, "soil");
View Full Code Here

    lowInput25 = new TriggerLowInput("mail.lowInput.25", 0.25f);
    lowInput10 = new TriggerLowInput("mail.lowInput.10", 0.1f);
    highBuffer75 = new TriggerBuffer("mail.lowBuffer.75", 0.75f);
    highBuffer90 = new TriggerBuffer("mail.lowBuffer.90", 0.90f);

    ForestryBlock.mail.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "mail");

    ShapedRecipeCustom recipe = ShapedRecipeCustom.createShapedRecipe(ForestryBlock.mail.getItemStack(1, Defaults.DEFINITION_MAILBOX_META),
        " # ", "#Y#", "XXX",
        '#', "ingotTin",
        'X', Blocks.chest,
        'Y', ForestryItem.sturdyCasing);

    BlockBase mail = ((BlockBase) ForestryBlock.mail.block());

    definitionMailbox = mail.addDefinition(new MachineDefinition(Defaults.DEFINITION_MAILBOX_META, "forestry.Mailbox", MachineMailbox.class, recipe).setFaces(0, 1, 2, 2, 2, 2, 0, 7));

    recipe = ShapedRecipeCustom.createShapedRecipe(
        ForestryBlock.mail.getItemStack(1, Defaults.DEFINITION_TRADESTATION_META),
        "Z#Z",
        "#Y#",
        "XWX",
        '#', ForestryItem.tubes.getItemStack(1, 2),
        'X', Blocks.chest,
        'Y', ForestryItem.sturdyCasing,
        'Z', ForestryItem.tubes.getItemStack(1, 3),
        'W', ForestryItem.circuitboards.getItemStack(1, 2));
    definitionTradestation = mail.addDefinition(new MachineDefinition(Defaults.DEFINITION_TRADESTATION_META, "forestry.Tradestation", MachineTrader.class, recipe).setFaces(0, 1, 2, 3, 4, 4, 0, 7));

    definitionPhilatelist = mail.addDefinition(new MachineDefinition(Defaults.DEFINITION_PHILATELIST_META, "forestry.Philatelist", MachinePhilatelist.class)
        .setFaces(0, 1, 2, 3, 2, 2, 0, 7));

    PostManager.postRegistry = new PostRegistry();
    PostManager.postRegistry.registerCarrier(new PostalCarrier(EnumAddressee.PLAYER));
    PostManager.postRegistry.registerCarrier(new PostalCarrier(EnumAddressee.TRADER));
View Full Code Here

  public static IButterflyRoot butterflyInterface;
  public static MachineDefinition definitionChest;

  @Override
  public void preInit() {
    ForestryBlock.lepidopterology.registerBlock(new BlockBase(Material.iron), ItemForestryBlock.class, "lepidopterology");
    ForestryBlock.lepidopterology.block().setCreativeTab(Tabs.tabLepidopterology);

    AlleleManager.alleleRegistry.registerSpeciesRoot(PluginLepidopterology.butterflyInterface = new ButterflyHelper());
    createAlleles();
  }
View Full Code Here

    Utils.registerEntity(EntityButterfly.class, "butterflyGE", 0, 0x000000, 0xffffff, 50, 1, true);
    proxy.initializeRendering();
    registerTemplates();

    BlockBase lepidopterology = ((BlockBase) ForestryBlock.lepidopterology.block());
    definitionChest = lepidopterology.addDefinition((new MachineDefinition(Defaults.DEFINITION_LEPICHEST_META, "forestry.LepiChest", TileLepidopteristChest.class,
        ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.lepidopterology.getItemStack(1, Defaults.DEFINITION_LEPICHEST_META),
            " # ",
            "XYX",
            "XXX",
View Full Code Here

    // Init squeezer manager
    RecipeManagers.craftingProviders.add(RecipeManagers.squeezerManager = new MachineSqueezer.RecipeManager());
    // Init still manager
    RecipeManagers.craftingProviders.add(RecipeManagers.stillManager = new MachineStill.RecipeManager());

    ForestryBlock.factoryTESR.registerBlock(new BlockBase(Material.iron, true), ItemForestryBlock.class, "factory");

    BlockBase factoryTESR = ((BlockBase) ForestryBlock.factoryTESR.block());

    definitionBottler = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_BOTTLER_META, "forestry.Bottler", MachineBottler.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/bottler_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_BOTTLER_META),
            "X#X",
            "#Y#",
            "X#X",
            '#', Blocks.glass,
            'X', ForestryItem.canEmpty,
            'Y', ForestryItem.sturdyCasing)));

    definitionCarpenter = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_CARPENTER_META, "forestry.Carpenter", MachineCarpenter.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/carpenter_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CARPENTER_META),
            "X#X",
            "XYX",
            "X#X",
            '#', Blocks.glass,
            'X', "ingotBronze",
            'Y', ForestryItem.sturdyCasing)));

    definitionCentrifuge = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_CENTRIFUGE_META, "forestry.Centrifuge", MachineCentrifuge.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/centrifuge_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_CENTRIFUGE_META),
            "X#X",
            "XYX",
            "X#X",
            '#', Blocks.glass,
            'X', "ingotCopper",
            'Y', ForestryItem.sturdyCasing.getItemStack())));

    definitionFermenter = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_FERMENTER_META, "forestry.Fermenter", MachineFermenter.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/fermenter_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_FERMENTER_META),
            "X#X",
            "#Y#",
            "X#X",
            '#', Blocks.glass,
            'X', "gearBronze",
            'Y', ForestryItem.sturdyCasing)));

    definitionMoistener = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_MOISTENER_META, "forestry.Moistener", MachineMoistener.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/moistener_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_MOISTENER_META),
            "X#X",
            "#Y#",
            "X#X",
            '#', Blocks.glass,
            'X', "gearCopper",
            'Y', ForestryItem.sturdyCasing)));

    definitionSqueezer = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_SQUEEZER_META, "forestry.Squeezer", MachineSqueezer.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/squeezer_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_SQUEEZER_META),
            "X#X",
            "XYX",
            "X#X",
            '#', Blocks.glass,
            'X', "ingotTin",
            'Y', ForestryItem.sturdyCasing.getItemStack())));

    definitionStill = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_STILL_META, "forestry.Still", MachineStill.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/still_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_STILL_META),
            "X#X",
            "#Y#",
            "X#X",
            '#', Blocks.glass,
            'X', Items.redstone,
            'Y', ForestryItem.sturdyCasing)));

    definitionRainmaker = factoryTESR.addDefinition(new MachineDefinition(Defaults.DEFINITION_RAINMAKER_META, "forestry.Rainmaker", MillRainmaker.class,
        Proxies.render.getRenderMill(Defaults.TEXTURE_PATH_BLOCKS + "/rainmaker_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryTESR.getItemStack(1, Defaults.DEFINITION_RAINMAKER_META),
            "X#X",
            "#Y#",
            "X#X",
            '#', Blocks.glass,
            'X', "gearTin",
            'Y', ForestryItem.hardenedCasing)));

    ForestryBlock.factoryPlain.registerBlock(new BlockBase(Material.iron), ItemNBTTile.class, "factory2");

    BlockBase factoryPlain = ((BlockBase) ForestryBlock.factoryPlain.block());

    definitionFabricator = factoryPlain.addDefinition(new MachineDefinition(Defaults.DEFINITION_FABRICATOR_META, "forestry.Fabricator", MachineFabricator.class,
        ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.factoryPlain.getItemStack(1, Defaults.DEFINITION_FABRICATOR_META),
            "X#X",
            "#Y#",
            "XZX",
            '#', Blocks.glass,
            'X', Items.gold_ingot,
            'Y', ForestryItem.sturdyCasing,
            'Z', Blocks.chest))
        .setFaces(0, 1, 2, 3, 4, 4));

    definitionRaintank = factoryPlain.addDefinition(new MachineDefinition(Defaults.DEFINITION_RAINTANK_META, "forestry.Raintank", MachineRaintank.class,
        ShapedRecipeCustom.createShapedRecipe(ForestryBlock.factoryPlain.getItemStack(1, Defaults.DEFINITION_RAINTANK_META),
            "X#X",
            "XYX",
            "X#X",
            '#', Blocks.glass,
            'X', Items.iron_ingot,
            'Y', ForestryItem.sturdyCasing))
        .setFaces(0, 1, 0, 0, 0, 0));

    definitionWorktable = factoryPlain.addDefinition(new MachineNBTDefinition(Defaults.DEFINITION_WORKTABLE_META, "forestry.Worktable", TileWorktable.class,
        ShapedRecipeCustom.createShapedRecipe(ForestryBlock.factoryPlain.getItemStack(1, Defaults.DEFINITION_WORKTABLE_META),
            "B",
            "W",
            "C",
            'B', Items.book,
View Full Code Here

TOP

Related Classes of forestry.core.gadgets.BlockBase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.