Search in sources :

Example 1 with MachineNBTDefinition

use of forestry.core.gadgets.MachineNBTDefinition in project ForestryMC by ForestryMC.

the class PluginFactory method preInit.

@Override
public void preInit() {
    super.preInit();
    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 MachineNBTDefinition(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, 'W', Blocks.crafting_table, 'C', Blocks.chest)).setFaces(0, 1, 2, 3, 4, 4));
}
Also used : MachineDefinition(forestry.core.gadgets.MachineDefinition) BlockBase(forestry.core.gadgets.BlockBase) MachineFabricator(forestry.factory.gadgets.MachineFabricator) MachineRaintank(forestry.factory.gadgets.MachineRaintank) TileWorktable(forestry.factory.gadgets.TileWorktable) MachineNBTDefinition(forestry.core.gadgets.MachineNBTDefinition)

Aggregations

BlockBase (forestry.core.gadgets.BlockBase)1 MachineDefinition (forestry.core.gadgets.MachineDefinition)1 MachineNBTDefinition (forestry.core.gadgets.MachineNBTDefinition)1 MachineFabricator (forestry.factory.gadgets.MachineFabricator)1 MachineRaintank (forestry.factory.gadgets.MachineRaintank)1 TileWorktable (forestry.factory.gadgets.TileWorktable)1