Started adding progress bars to other machines

This commit is contained in:
gigabit101 2015-07-21 17:53:43 +01:00
parent 0880ffac72
commit ab72f7dced
3 changed files with 26 additions and 9 deletions

View file

@ -216,5 +216,15 @@ public class TileIndustrialElectrolyzer extends TileMachineBase implements IWren
{
return slotIndex == 2 || slotIndex == 3 || slotIndex == 4 || slotIndex == 5;
}
public int getProgressScaled(int scale) {
if(crafter.currentTickTime != 0) {
return crafter.currentTickTime * scale / crafter.currentNeededTicks;
}
return 0;
}
public int getEnergyScaled(int scale) {
return (int)energy.getEnergyStored() * scale / energy.getCapacity();
}
}