use of forestry.factory.gadgets.MachineRaintank in project ForestryMC by ForestryMC.
the class GuiRaintank method drawGuiContainerBackgroundLayer.
@Override
protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
super.drawGuiContainerBackgroundLayer(var1, mouseX, mouseY);
MachineRaintank machine = inventory;
if (machine.isFilling()) {
int progress = machine.getFillProgressScaled(24);
drawTexturedModalRect(guiLeft + 80, guiTop + 39, 176, 74, 24 - progress, 16);
}
}
Aggregations