Started adding progress bars to other machines
This commit is contained in:
parent
0880ffac72
commit
ab72f7dced
3 changed files with 26 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue