Search in sources :

Example 11 with GuiFluidGauge

use of mekanism.client.gui.element.gauge.GuiFluidGauge in project Mekanism by mekanism.

the class GuiPRC method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiEnergyTab(this, tile.getEnergyContainer(), tile::getActive));
    addButton(new GuiFluidGauge(() -> tile.inputFluidTank, () -> tile.getFluidTanks(null), GaugeType.STANDARD, this, 5, 10));
    addButton(new GuiGasGauge(() -> tile.inputGasTank, () -> tile.getGasTanks(null), GaugeType.STANDARD, this, 28, 10));
    addButton(new GuiGasGauge(() -> tile.outputGasTank, () -> tile.getGasTanks(null), GaugeType.SMALL, this, 140, 40));
    addButton(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 163, 16));
    addButton(new GuiProgress(tile::getScaledProgress, ProgressType.RIGHT, this, 77, 38).jeiCategory(tile));
}
Also used : GuiFluidGauge(mekanism.client.gui.element.gauge.GuiFluidGauge) GuiProgress(mekanism.client.gui.element.progress.GuiProgress) GuiGasGauge(mekanism.client.gui.element.gauge.GuiGasGauge) GuiVerticalPowerBar(mekanism.client.gui.element.bar.GuiVerticalPowerBar) GuiEnergyTab(mekanism.client.gui.element.tab.GuiEnergyTab)

Aggregations

GuiFluidGauge (mekanism.client.gui.element.gauge.GuiFluidGauge)11 GuiEnergyTab (mekanism.client.gui.element.tab.GuiEnergyTab)8 GuiDownArrow (mekanism.client.gui.element.GuiDownArrow)5 GuiVerticalPowerBar (mekanism.client.gui.element.bar.GuiVerticalPowerBar)5 GuiGasGauge (mekanism.client.gui.element.gauge.GuiGasGauge)5 GuiProgress (mekanism.client.gui.element.progress.GuiProgress)5 GuiInnerScreen (mekanism.client.gui.element.GuiInnerScreen)4 GuiHeatTab (mekanism.client.gui.element.tab.GuiHeatTab)3 ITextComponent (net.minecraft.util.text.ITextComponent)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2 IBarInfoHandler (mekanism.client.gui.element.bar.GuiBar.IBarInfoHandler)2 GuiHorizontalPowerBar (mekanism.client.gui.element.bar.GuiHorizontalPowerBar)2 FluidStack (net.minecraftforge.fluids.FluidStack)2 GuiHorizontalRateBar (mekanism.client.gui.element.bar.GuiHorizontalRateBar)1 GuiVerticalRateBar (mekanism.client.gui.element.bar.GuiVerticalRateBar)1 GuiGasMode (mekanism.client.gui.element.button.GuiGasMode)1 ToggleButton (mekanism.client.gui.element.button.ToggleButton)1 GuiEnergyGauge (mekanism.client.gui.element.gauge.GuiEnergyGauge)1 GuiNumberGauge (mekanism.client.gui.element.gauge.GuiNumberGauge)1