Examples of IFluidInfoHandler


Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

      {
        String multiplier = MekanismUtils.getEnergyDisplay(tileEntity.ENERGY_USAGE);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
      }
    }, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalWasher.png")));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
      }
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

            "Producing: " + MekanismUtils.getEnergyDisplay(tileEntity.isActive ? MekanismGenerators.heatGeneration : tileEntity.getBoost()) + "/t",
            "Storing: " + MekanismUtils.getEnergyDisplay(tileEntity.getEnergy()),
            "Max Output: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxOutput()) + "/t");
      }
    }, this, MekanismUtils.getResource(ResourceType.GUI, "GuiHeatGenerator.png")));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.lavaTank;
      }
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

  public GuiPortableTank(InventoryPlayer inventory, TileEntityPortableTank tentity)
  {
    super(new ContainerPortableTank(inventory, tentity));
    tileEntity = tentity;
    guiElements.add(new GuiContainerEditMode(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler()
    {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, guiLocation, 27, 19));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, guiLocation, 27, 50));
    guiElements.add(new GuiSlot(SlotType.POWER, this, guiLocation, 142, 34).with(SlotOverlay.POWER));
    guiElements.add(new GuiPowerBar(this, tileEntity, guiLocation, 164, 15));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
      }
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

      {
        String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_PER_TICK));
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
      }
    }, this, tileEntity.guiLocation));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.inputFluidTank;
      }
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, guiLocation, 27, 19));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, guiLocation, 27, 50));
    guiElements.add(new GuiSlot(SlotType.POWER, this, guiLocation, 142, 34).with(SlotOverlay.POWER));
    guiElements.add(new GuiPowerBar(this, tileEntity, guiLocation, 164, 15));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
      }
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

      {
        String multiplier = MekanismUtils.getEnergyDisplay(tileEntity.ENERGY_USAGE);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
      }
    }, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalWasher.png")));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler()
    {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
View Full Code Here

Examples of mekanism.client.gui.GuiFluidGauge.IFluidInfoHandler

      {
        String multiplier = MekanismUtils.getEnergyDisplay(Mekanism.FROM_H2*2);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
      }
    }, this, MekanismUtils.getResource(ResourceType.GUI, "GuiElectrolyticSeparator.png")));
    guiElements.add(new GuiFluidGauge(new IFluidInfoHandler() {
      @Override
      public FluidTank getTank()
      {
        return tileEntity.fluidTank;
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.