use of mekanism.client.gui.element.tab.GuiEnergyTab in project Mekanism by mekanism.
the class GuiPrecisionSawmill method addGuiElements.
@Override
protected void addGuiElements() {
super.addGuiElements();
addButton(new GuiUpArrow(this, 60, 38));
addButton(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 164, 15));
addButton(new GuiEnergyTab(this, tile.getEnergyContainer(), tile::getActive));
// Note: We just draw the wide slot on top of the normal slots so that it looks a bit better
addButton(new GuiSlot(SlotType.OUTPUT_WIDE, this, 111, 30));
addButton(new GuiProgress(tile::getScaledProgress, ProgressType.BAR, this, 78, 38).jeiCategory(tile));
}
use of mekanism.client.gui.element.tab.GuiEnergyTab 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()));
}
Aggregations