Package forestry.energy.gadgets

Examples of forestry.energy.gadgets.EngineDefinition


  @Override
  @Optional.Method(modid = "IC2")
  public void preInit() {
    super.preInit();

    definitionEngineTin = ((BlockBase) ForestryBlock.engine.block()).addDefinition(new EngineDefinition(Defaults.DEFINITION_ENGINETIN_META, "forestry.EngineTin", EngineTin.class,
        PluginEnergy.proxy.getRenderDefaultEngine(Defaults.TEXTURE_PATH_BLOCKS + "/engine_tin_"), ShapedRecipeCustom.createShapedRecipe(
        ForestryBlock.engine.getItemStack(1, Defaults.DEFINITION_ENGINETIN_META),
        "###",
        " X ",
        "YVY",
View Full Code Here


  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),
            "###",
            " X ",
            "YVY",
            '#', "ingotCopper",
            'X', Blocks.glass,
            'Y', "gearCopper",
            'V', Blocks.piston)));
    definitionEngineBronze = ((BlockBase) ForestryBlock.engine.block()).addDefinition(new EngineDefinition(Defaults.DEFINITION_ENGINEBRONZE_META, "forestry.EngineBronze", EngineBronze.class,
        PluginEnergy.proxy.getRenderDefaultEngine(Defaults.TEXTURE_PATH_BLOCKS + "/engine_bronze_"), ShapedRecipeCustom.createShapedRecipe(
            ForestryBlock.engine.getItemStack(1, Defaults.DEFINITION_ENGINEBRONZE_META),
            "###",
            " X ",
            "YVY",
            '#', "ingotBronze",
            'X', Blocks.glass,
            'Y', "gearBronze",
            'V', Blocks.piston)));

    ShapedRecipeCustom clockworkRecipe = null;
    if (GameMode.getGameMode().getBooleanSetting("energy.engine.clockwork"))
      clockworkRecipe = ShapedRecipeCustom.createShapedRecipe(
          ForestryBlock.engine.getItemStack(1, Defaults.DEFINITION_ENGINECLOCKWORK_META),
          "###",
          " X ",
          "ZVY",
          '#', "plankWood",
          'X', Blocks.glass,
          'Y', Items.clock,
          'Z', ForestryItem.gearCopper,
          'V', Blocks.piston);

    definitionEngineClockwork = ((BlockBase) ForestryBlock.engine.block()).addDefinition(new EngineDefinition(Defaults.DEFINITION_ENGINECLOCKWORK_META, "forestry.EngineClockwork", EngineClockwork.class,
        PluginEnergy.proxy.getRenderDefaultEngine(Defaults.TEXTURE_PATH_BLOCKS + "/engine_clock_"), clockworkRecipe));
  }
View Full Code Here

TOP

Related Classes of forestry.energy.gadgets.EngineDefinition

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.