Search in sources :

Example 26 with GuiInnerScreen

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

the class GuiSeismicVibrator method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiInnerScreen(this, 16, 23, 112, 40, () -> Arrays.asList(tile.getActive() ? MekanismLang.VIBRATING.translate() : MekanismLang.IDLE.translate(), MekanismLang.CHUNK.translate(tile.getBlockPos().getX() >> 4, tile.getBlockPos().getZ() >> 4))));
    addButton(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 164, 15));
    addButton(new GuiEnergyTab(this, tile.getEnergyContainer()));
}
Also used : GuiInnerScreen(mekanism.client.gui.element.GuiInnerScreen) GuiVerticalPowerBar(mekanism.client.gui.element.bar.GuiVerticalPowerBar) GuiEnergyTab(mekanism.client.gui.element.tab.GuiEnergyTab)

Aggregations

GuiInnerScreen (mekanism.client.gui.element.GuiInnerScreen)26 ArrayList (java.util.ArrayList)12 GuiEnergyTab (mekanism.client.gui.element.tab.GuiEnergyTab)12 ITextComponent (net.minecraft.util.text.ITextComponent)11 List (java.util.List)10 GuiVerticalPowerBar (mekanism.client.gui.element.bar.GuiVerticalPowerBar)10 IBarInfoHandler (mekanism.client.gui.element.bar.GuiBar.IBarInfoHandler)6 GuiSlot (mekanism.client.gui.element.slot.GuiSlot)6 GuiGasGauge (mekanism.client.gui.element.gauge.GuiGasGauge)5 GuiHeatTab (mekanism.client.gui.element.tab.GuiHeatTab)5 MatrixStack (com.mojang.blaze3d.matrix.MatrixStack)4 GuiDownArrow (mekanism.client.gui.element.GuiDownArrow)4 GuiElementHolder (mekanism.client.gui.element.GuiElementHolder)4 TranslationButton (mekanism.client.gui.element.button.TranslationButton)4 GuiFluidGauge (mekanism.client.gui.element.gauge.GuiFluidGauge)4 Nonnull (javax.annotation.Nonnull)3 GuiDynamicHorizontalRateBar (mekanism.client.gui.element.bar.GuiDynamicHorizontalRateBar)3 GuiScrollBar (mekanism.client.gui.element.scroll.GuiScrollBar)3 GuiTextField (mekanism.client.gui.element.text.GuiTextField)3 Mekanism (mekanism.common.Mekanism)3