Examples of MachineDefinition


Examples of forestry.core.gadgets.MachineDefinition

    // 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),
            " # ",
            "XYX",
            "XXX",
View Full Code Here

Examples of forestry.core.gadgets.MachineDefinition

        '#', "ingotTin",
        'X', Blocks.glass,
        'Y', "gearTin",
        'V', Blocks.piston)));

    definitionGenerator = ((BlockBase) ForestryBlock.engine.block()).addDefinition(new MachineDefinition(Defaults.DEFINITION_GENERATOR_META, "forestry.Generator", MachineGenerator.class,
        Proxies.render.getRenderDefaultMachine(Defaults.TEXTURE_PATH_BLOCKS + "/generator_"), ShapedRecipeCustom.createShapedRecipe(
        ForestryBlock.engine.getItemStack(1, Defaults.DEFINITION_GENERATOR_META),
        "X#X",
        "XYX",
        "X#X",
View Full Code Here

Examples of forestry.core.gadgets.MachineDefinition

    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",
            "#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");
    ForestryBlock.beehives.block().setHarvestLevel("pickaxe", 1, 0);
    ForestryBlock.beehives.block().setHarvestLevel("scoop", 0, 1);
View Full Code Here

Examples of forestry.core.gadgets.MachineDefinition

    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");
    ForestryBlock.soil.block().setHarvestLevel("shovel", 0, 0);
    ForestryBlock.soil.block().setHarvestLevel("shovel", 0, 1);
View Full Code Here

Examples of forestry.core.gadgets.MachineDefinition

        '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

Examples of forestry.core.gadgets.MachineDefinition

    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

Examples of forestry.core.gadgets.MachineDefinition

    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,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.