Package mekanism.client.gui.GuiEnergyInfo

Examples of mekanism.client.gui.GuiEnergyInfo.IInfoHandler


    super(tentity, new ContainerChemicalOxidizer(inventory, tentity));
    tileEntity = tentity;

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalOxidizer.png")));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalOxidizer.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_USAGE));
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here


  {
    super(tentity, new ContainerChemicalInfuser(inventory, tentity));
    tileEntity = tentity;

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(tileEntity.ENERGY_USAGE);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here

    super(tentity, new ContainerChemicalDissolutionChamber(inventory, tentity));
    tileEntity = tentity;

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png")));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_USAGE));
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 24));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 55));

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 154, 4).with(SlotOverlay.POWER));
   
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(tileEntity.ENERGY_USAGE);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png")));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png")));
    guiElements.add(new GuiPowerBar(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png"), 160, 23));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_USAGE));
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png")));
    guiElements.add(new GuiPowerBar(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png"), 164, 15));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(MekanismUtils.getEnergyPerTick(tileEntity, tileEntity.ENERGY_PER_TICK));
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
View Full Code Here

      public IStrictEnergyStorage getEnergyStorage()
      {
        return tileEntity;
      }
    }, GuiEnergyGauge.Type.WIDE, this, MekanismUtils.getResource(ResourceType.GUI, "GuiEnergyCube.png"), 55, 18));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler()
    {
      @Override
      public List<String> getInfo()
      {
        return ListUtils.asList(
View Full Code Here

  public GuiHeatGenerator(InventoryPlayer inventory, TileEntityHeatGenerator tentity)
  {
    super(new ContainerHeatGenerator(inventory, tentity));
    tileEntity = tentity;
    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiHeatGenerator.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler()
    {
      @Override
      public List<String> getInfo()
      {
        return ListUtils.asList(
View Full Code Here

  public GuiBioGenerator(InventoryPlayer inventory, TileEntityBioGenerator tentity)
  {
    super(new ContainerBioGenerator(inventory, tentity));
    tileEntity = tentity;
    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBioGenerator.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler()
    {
      @Override
      public List<String> getInfo()
      {
        return ListUtils.asList(
View Full Code Here

  public GuiGasGenerator(InventoryPlayer inventory, TileEntityGasGenerator tentity)
  {
    super(new ContainerGasGenerator(inventory, tentity));
    tileEntity = tentity;
    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiGasGenerator.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        return ListUtils.asList(
            "Producing: " + MekanismUtils.getEnergyDisplay(tileEntity.generationRate) + "/t",
View Full Code Here

TOP

Related Classes of mekanism.client.gui.GuiEnergyInfo.IInfoHandler

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.