Package mekanism.client.gui.GuiEnergyInfo

Examples of mekanism.client.gui.GuiEnergyInfo.IInfoHandler


    guiElements.add(new GuiRedstoneControl(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiPowerBar(this, tileEntity, tileEntity.guiLocation, 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


    guiElements.add(new GuiRedstoneControl(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiPowerBar(this, tileEntity, tileEntity.guiLocation, 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 GuiWindTurbine(InventoryPlayer inventory, TileEntityWindTurbine tentity)
  {
    super(new ContainerWindTurbine(inventory, tentity));
    tileEntity = tentity;
    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiWindTurbine.png")));
    guiElements.add(new GuiEnergyInfo(new IInfoHandler()
    {
      @Override
      public List<String> getInfo()
      {
        return ListUtils.asList(
View Full Code Here

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

    tileEntity = tentity;

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

    guiElements.add(new GuiRedstoneControl(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, tileEntity.guiLocation));
    guiElements.add(new GuiPowerBar(this, tileEntity, tileEntity.guiLocation, 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

    tileEntity = tentity;

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiBlank.png")));
    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

    guiElements.add(new GuiRedstoneControl(this, tileEntity, tileEntity.tier.guiLocation));
    guiElements.add(new GuiUpgradeManagement(this, tileEntity, tileEntity.tier.guiLocation));
    guiElements.add(new GuiRecipeType(this, tileEntity, tileEntity.tier.guiLocation));
    guiElements.add(new GuiConfigurationTab(this, tileEntity, tileEntity.tier.guiLocation));
    guiElements.add(new GuiSortingTab(this, tileEntity, tileEntity.tier.guiLocation));
    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

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

    guiElements.add(new GuiRedstoneControl(this, tileEntity, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalWasher.png")));
    guiElements.add(new GuiBucketIO(this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalWasher.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(new ContainerElectrolyticSeparator(inventory, tentity));

    tileEntity = tentity;

    guiElements.add(new GuiEnergyInfo(new IInfoHandler() {
      @Override
      public List<String> getInfo()
      {
        String multiplier = MekanismUtils.getEnergyDisplay(Mekanism.FROM_H2*2);
        return ListUtils.asList("Using: " + multiplier + "/t", "Needed: " + MekanismUtils.getEnergyDisplay(tileEntity.getMaxEnergy()-tileEntity.getEnergy()));
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.