Examples of IProgressInfoHandler


Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalOxidizer.png"), 154, 4).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalOxidizer.png"), 25, 35));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalOxidizer.png"), 154, 24).with(SlotOverlay.PLUS));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png"), 154, 4).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png"), 154, 55).with(SlotOverlay.MINUS));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png"), 4, 55).with(SlotOverlay.MINUS));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png"), 79, 64).with(SlotOverlay.PLUS));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.isActive ? 1 : 0;
      }
    }, ProgressBar.SMALL_RIGHT, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalInfuser.png"), 45, 38));
    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.isActive ? 1 : 0;
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png"), 154, 4).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png"), 25, 35));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png"), 154, 24).with(SlotOverlay.PLUS));
    guiElements.add(new GuiSlot(SlotType.NORMAL, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalDissolutionChamber.png"), 5, 64).with(SlotOverlay.MINUS));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

      {
        return tileEntity.gasTank;
      }
    }, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 25, 13));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.isActive ? 1 : 0;
      }

      @Override
      public boolean isActive()
      {
        return tileEntity.mode == 0;
      }
    }, ProgressBar.LARGE_RIGHT, this, MekanismUtils.getResource(ResourceType.GUI, "GuiRotaryCondensentrator.png"), 62, 38));
    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.isActive ? 1 : 0;
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    }, GuiGauge.Type.STANDARD, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png"), 5, 4));
    guiElements.add(new GuiSlot(SlotType.EXTRA, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png"), 5, 64).with(SlotOverlay.PLUS));
    guiElements.add(new GuiSlot(SlotType.POWER, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png"), 154, 4).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.OUTPUT, this, MekanismUtils.getResource(ResourceType.GUI, "GuiChemicalCrystallizer.png"), 130, 56));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.EXTRA, this, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png"), 16, 34));
    guiElements.add(new GuiSlot(SlotType.INPUT, this, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png"), 50, 42));
    guiElements.add(new GuiSlot(SlotType.POWER, this, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png"), 142, 34).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.OUTPUT, this, MekanismUtils.getResource(ResourceType.GUI, "GuiMetallurgicInfuser.png"), 108, 42));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

      public double getLevel()
      {
        return ticksPassed <= 20 ? ticksPassed / 20.0F : 1.0F;
      }
    }, MekanismUtils.getResource(ResourceType.GUI, stripTexture()), 164, 15));
    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return ticksPassed >= 20 ? (ticksPassed - 20) % 20 / 20.0F : 0.0F;
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.INPUT, this, tileEntity.guiLocation, 55, 16));
    guiElements.add(new GuiSlot(SlotType.POWER, this, tileEntity.guiLocation, 55, 52).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.OUTPUT_WIDE, this, tileEntity.guiLocation, 111, 30));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

      public double getLevel()
      {
        return ticksPassed <= 20 ? ticksPassed / 20.0F : 1.0F;
      }
    }, MekanismUtils.getResource(ResourceType.GUI, stripTexture()), 164, 15));
    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return ticksPassed >= 40 ? (ticksPassed - 40) % 20 / 20.0F : 0.0F;
View Full Code Here

Examples of mekanism.client.gui.GuiProgress.IProgressInfoHandler

    guiElements.add(new GuiSlot(SlotType.INPUT, this, tileEntity.guiLocation, 55, 16));
    guiElements.add(new GuiSlot(SlotType.POWER, this, tileEntity.guiLocation, 55, 52).with(SlotOverlay.POWER));
    guiElements.add(new GuiSlot(SlotType.OUTPUT_LARGE, this, tileEntity.guiLocation, 111, 30));

    guiElements.add(new GuiProgress(new IProgressInfoHandler()
    {
      @Override
      public double getProgress()
      {
        return tileEntity.getScaledProgress();
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.