Package forestry.api.circuits

Examples of forestry.api.circuits.ICircuitLayout


    lowSoil32 = new TriggerLowSoil(32);
    lowFertilizer50 = new TriggerLowFertilizer("lowFertilizer.50", 0.5f);
    lowFertilizer25 = new TriggerLowFertilizer("lowFertilizer.25", 0.25f);

    // Layouts
    ICircuitLayout layoutManaged = new CircuitLayout("farms.managed");
    ChipsetManager.circuitRegistry.registerLayout(layoutManaged);
    ICircuitLayout layoutManual = new CircuitLayout("farms.manual");
    ChipsetManager.circuitRegistry.registerLayout(layoutManual);
  }
View Full Code Here


    ItemStack control = ForestryBlock.farm.getItemStack(1, 5);
    ShapedRecipeCustom.buildRecipe(control, " # ", "XTX", '#', basic, 'T', ForestryItem.tubes.getItemStack(1, 4), 'X', Items.redstone).setPreserveNBT();

    // Circuits
    ICircuitLayout layoutManaged = ChipsetManager.circuitRegistry.getLayout("forestry.farms.managed");
    ICircuitLayout layoutManual = ChipsetManager.circuitRegistry.getLayout("forestry.farms.manual");

    ChipsetManager.solderManager.addRecipe(layoutManaged, ForestryItem.tubes.getItemStack(1, 0), Circuit.farmArborealManaged);
    ChipsetManager.solderManager.addRecipe(layoutManaged, ForestryItem.tubes.getItemStack(1, 1), Circuit.farmPeatManaged);
    ChipsetManager.solderManager.addRecipe(layoutManaged, ForestryItem.tubes.getItemStack(1, 2), Circuit.farmCerealManaged);
    ChipsetManager.solderManager.addRecipe(layoutManaged, ForestryItem.tubes.getItemStack(1, 3), Circuit.farmVegetableManaged);
View Full Code Here

    silver = IC2Items.getItem("silverIngot");
    brass = IC2Items.getItem("bronzeIngot");

    Circuit.farmRubberManual = new CircuitFarmLogic("manualRubber", FarmLogicRubber.class);

    ICircuitLayout layoutEngineTin = new CircuitLayout("engine.tin");
    ChipsetManager.circuitRegistry.registerLayout(layoutEngineTin);

    ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.ELECTRIC_CHOKE_I, "forestry.energyChoke1");
    ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.FIRE_DAMPENER_I, "forestry.energyDampener1");
    ChipsetManager.circuitRegistry.registerLegacyMapping(CircuitId.ELECTRIC_EFFICIENCY_I, "forestry.energyEfficiency1");
View Full Code Here

      ItemStack bogEarthCan = GameMode.getGameMode().getStackSetting("recipe.output.bogearth.can");
      if (bogEarthCan.stackSize > 0)
        Proxies.common.addRecipe(bogEarthCan, "#Y#", "YXY", "#Y#", '#', Blocks.dirt, 'X', waterCell, 'Y', Blocks.sand);
    }

    ICircuitLayout layout = ChipsetManager.circuitRegistry.getLayout("forestry.engine.tin");

    // / Solder Manager
    ChipsetManager.solderManager.addRecipe(layout, ForestryItem.tubes.getItemStack(1, 0), Circuit.energyElectricChoke1);
    ChipsetManager.solderManager.addRecipe(layout, ForestryItem.tubes.getItemStack(1, 1), Circuit.energyElectricBoost1);
    ChipsetManager.solderManager.addRecipe(layout, ForestryItem.tubes.getItemStack(1, 2), Circuit.energyElectricBoost2);
View Full Code Here

  @Override
  protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
    super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);

    ICircuitLayout layout = ((ContainerSolderingIron) inventorySlots).getLayout();
    String title = layout.getName();
    fontRendererObj.drawString(title, guiLeft + 8 + getCenteredOffset(title, 138), guiTop + 16, fontColor.get("gui.screen"));

    for (int l = 2; l < inventory.getSizeInventory(); l++) {
      String description;
      CircuitRecipe recipe = ItemSolderingIron.SolderManager.getMatchingRecipe(layout, inventory.getStackInSlot(l));
View Full Code Here

    }

    public void regressLayout() {
      Iterator<Entry<String, ICircuitLayout>> it = ChipsetManager.circuitRegistry.getRegisteredLayouts().entrySet().iterator();

      ICircuitLayout previous = null;
      while (it.hasNext()) {
        Entry<String, ICircuitLayout> entry = it.next();
        if (entry.getKey().equals(layout.getUID())) {

          if (previous != null)
View Full Code Here

        plasticElectronTube = new ItemPlasticElectronTube("plasticElectronTube");
        Itemss.registerItem(plasticElectronTube);

        Collection col = Farmables.farmables.get("farmVegetables");
        // if(col != null) {
        ICircuitLayout layoutManaged = ChipsetManager.circuitRegistry.getLayout("forestry.farms.managed");

        try {
            Field field = ReflectionHelper.findField(Class.forName("forestry.farming.gadgets.StructureLogicFarm"), "bricks");
            farmStructureBlocks = (HashSet<Block>)field.get(null);
        } catch(Throwable e) {
View Full Code Here

TOP

Related Classes of forestry.api.circuits.ICircuitLayout

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.