Package forestry.energy.gadgets

Examples of forestry.energy.gadgets.EngineTin


    case EngineCopperGUI:
      return new ContainerEngineCopper(player.inventory, (EngineCopper) getTileForestry(world, x, y, z));

    case EngineTinGUI:
      EngineTin tile = (EngineTin) getTileForestry(world, x, y, z);
      Proxies.net.sendToPlayer(new PacketSocketUpdate(PacketIds.SOCKET_UPDATE, x, y, z, tile), player);
      return new ContainerEngineTin(player.inventory, tile);

    case GeneratorGUI:
      return new ContainerGenerator(player.inventory, (MachineGenerator) getTileForestry(world, x, y, z));
View Full Code Here


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

    EngineTin engine = getEngine();
    int storageHeight = engine.getStorageScaled(46);
    int storageMaxHeight = engine.getStorageScaled(100);
    EnumTankLevel rated = engine.rateLevel(storageMaxHeight);

    drawHealthMeter(guiLeft + 74, guiTop + 25, storageHeight, rated);
  }
View Full Code Here

  @Override
  public void onInsertion(int slot, TileEntity tile) {
    if (!isCircuitable(tile))
      return;

    EngineTin engine = (EngineTin) tile;
    engine.changeEnergyConfig(euChange, rfChange, 2 * euChange);
  }
 
View Full Code Here

  @Override
  public void onRemoval(int slot, TileEntity tile) {
    if (!isCircuitable(tile))
      return;

    EngineTin engine = (EngineTin) tile;
    engine.changeEnergyConfig(-euChange, -rfChange, -(2 * euChange));
  }
 
View Full Code Here

TOP

Related Classes of forestry.energy.gadgets.EngineTin

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.