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()));
}
Aggregations