Search in sources :

Example 6 with GuiDownArrow

use of mekanism.client.gui.element.GuiDownArrow in project Mekanism by mekanism.

the class GuiFluidicPlenisher method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiInnerScreen(this, 54, 23, 80, 41, () -> {
        List<ITextComponent> list = new ArrayList<>();
        list.add(EnergyDisplay.of(tile.getEnergyContainer()).getTextComponent());
        list.add(MekanismLang.FINISHED.translate(YesNo.of(tile.finishedCalc)));
        FluidStack fluid = tile.fluidTank.getFluid();
        if (fluid.isEmpty()) {
            list.add(MekanismLang.NO_FLUID.translate());
        } else {
            list.add(MekanismLang.GENERIC_STORED_MB.translate(fluid, TextUtils.format(fluid.getAmount())));
        }
        return list;
    }));
    addButton(new GuiDownArrow(this, 32, 39));
    addButton(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 164, 15));
    addButton(new GuiFluidGauge(() -> tile.fluidTank, () -> tile.getFluidTanks(null), GaugeType.STANDARD, this, 6, 13));
    addButton(new GuiEnergyTab(this, tile.getEnergyContainer()));
}
Also used : GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) GuiFluidGauge(mekanism.client.gui.element.gauge.GuiFluidGauge) GuiDownArrow(mekanism.client.gui.element.GuiDownArrow) FluidStack(net.minecraftforge.fluids.FluidStack) ArrayList(java.util.ArrayList) List(java.util.List) GuiVerticalPowerBar(mekanism.client.gui.element.bar.GuiVerticalPowerBar) GuiEnergyTab(mekanism.client.gui.element.tab.GuiEnergyTab)

Aggregations

GuiDownArrow (mekanism.client.gui.element.GuiDownArrow)6 GuiFluidGauge (mekanism.client.gui.element.gauge.GuiFluidGauge)5 GuiInnerScreen (mekanism.client.gui.element.GuiInnerScreen)4 GuiEnergyTab (mekanism.client.gui.element.tab.GuiEnergyTab)4 ArrayList (java.util.ArrayList)3 FluidStack (net.minecraftforge.fluids.FluidStack)3 List (java.util.List)2 GuiHorizontalPowerBar (mekanism.client.gui.element.bar.GuiHorizontalPowerBar)2 GuiVerticalPowerBar (mekanism.client.gui.element.bar.GuiVerticalPowerBar)2 GuiProgress (mekanism.client.gui.element.progress.GuiProgress)2 ITextComponent (net.minecraft.util.text.ITextComponent)2 GuiElementHolder (mekanism.client.gui.element.GuiElementHolder)1 IBarInfoHandler (mekanism.client.gui.element.bar.GuiBar.IBarInfoHandler)1 GuiHorizontalRateBar (mekanism.client.gui.element.bar.GuiHorizontalRateBar)1 ToggleButton (mekanism.client.gui.element.button.ToggleButton)1 GuiGasGauge (mekanism.client.gui.element.gauge.GuiGasGauge)1 GuiSlurryGauge (mekanism.client.gui.element.gauge.GuiSlurryGauge)1 IBooleanProgressInfoHandler (mekanism.client.gui.element.progress.IProgressInfoHandler.IBooleanProgressInfoHandler)1 GuiSlot (mekanism.client.gui.element.slot.GuiSlot)1 GuiHeatTab (mekanism.client.gui.element.tab.GuiHeatTab)1