Package forestry.energy

Examples of forestry.energy.EnergyManager


  private int previousDelays = 0;
  private int workCounter;
  private final EnergyManager energyManager;

  public TileGearbox() {
    energyManager = new EnergyManager(200, 50, 10000);

    fixedType = TYPE_GEARS;
  }
View Full Code Here


    drawIcon(TextureManager.getInstance().getDefault("misc/energy"), x + 3, y + 4);

    if (!isFullyOpened())
      return;

    EnergyManager energyManager = tile.getEnergyManager();
    manager.minecraft.fontRenderer.drawStringWithShadow(StringUtil.localize("gui.energy"), x + 22, y + 8, manager.gui.fontColor.get("ledger.power.header"));
    manager.minecraft.fontRenderer.drawStringWithShadow(StringUtil.localize("gui.stored") + ":", x + 22, y + 20,
        manager.gui.fontColor.get("ledger.power.subheader"));
    manager.minecraft.fontRenderer.drawString(energyManager.getTotalEnergyStored() + " RF", x + 22, y + 32, manager.gui.fontColor.get("ledger.power.text"));
    manager.minecraft.fontRenderer.drawStringWithShadow(StringUtil.localize("gui.maxenergy") + ":", x + 22, y + 44,
        manager.gui.fontColor.get("ledger.power.subheader"));
    manager.minecraft.fontRenderer.drawString(energyManager.getMaxEnergyStored() + " RF", x + 22, y + 56, manager.gui.fontColor.get("ledger.power.text"));
    manager.minecraft.fontRenderer.drawStringWithShadow(StringUtil.localize("gui.maxenergyreceive") + ":", x + 22, y + 68,
        manager.gui.fontColor.get("ledger.power.subheader"));
    manager.minecraft.fontRenderer.drawString(energyManager.getMaxEnergyReceived() + " RF", x + 22, y + 80, manager.gui.fontColor.get("ledger.power.text"));

  }
View Full Code Here

  public Engine(int maxHeat, int maxEnergy, int maxEnergyExtracted) {
    this.maxHeat = maxHeat;
    this.maxEnergy = maxEnergy;
    this.maxEnergyExtracted = maxEnergyExtracted;
    energyManager = new EnergyManager(2000, 100, 1000000);

    // allow engines to chain, but not have energy sucked out of them
    energyManager.setReceiveOnly();
  }
View Full Code Here

  private final int textureOn;

  public TileAlvearyClimatiser(ClimateControl control, int textureOff, int textureOn, int componentBlockMeta) {
    super(componentBlockMeta);
    this.climateControl = control;
    energyManager = new EnergyManager(1000, 250, 2000);
    energyManager.setReceiveOnly();
    this.textureOff = textureOff;
    this.textureOn = textureOn;
  }
View Full Code Here

  }

  protected final EnergyManager energyManager;

  public TilePowered(int maxTransfer, int energyPerWork, int capacity) {
    this.energyManager = new EnergyManager(maxTransfer, energyPerWork, capacity);
    this.energyManager.setReceiveOnly();
  }
View Full Code Here

TOP

Related Classes of forestry.energy.EnergyManager

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.