super.detectAndSendChanges();
final int syncAvg = (int)(tileentity.inputTracker.getAverage() * 100);
for (int crafterIndex = 0; crafterIndex < crafters.size(); ++crafterIndex)
{
ICrafting crafter = (ICrafting)crafters.get(crafterIndex);
if (this.currentEnergy != tileentity.currentEnergy)
{
crafter.sendProgressBarUpdate(this, 0, tileentity.currentEnergy & 65535);
crafter.sendProgressBarUpdate(this, 1, tileentity.currentEnergy >>> 16);
}
if (this.adjustedMaxInput != tileentity.adjustedMaxInput)
{
crafter.sendProgressBarUpdate(this, 2, tileentity.adjustedMaxInput);
}
if (this.adjustedStorage != tileentity.adjustedStorage)
{
crafter.sendProgressBarUpdate(this, 3, tileentity.adjustedStorage & 65535);
crafter.sendProgressBarUpdate(this, 4, tileentity.adjustedStorage >>> 16);
}
if (this.powerTier != tileentity.powerTier)
{
crafter.sendProgressBarUpdate(this, 5, tileentity.powerTier);
}
if (this.energyRequired != tileentity.energyRequired)
{
crafter.sendProgressBarUpdate(this, 6, tileentity.energyRequired & 65535);
crafter.sendProgressBarUpdate(this, 7, tileentity.energyRequired >>> 16);
}
if (this.ticksRequired != tileentity.ticksRequired)
{
crafter.sendProgressBarUpdate(this, 8, tileentity.ticksRequired & 65535);
crafter.sendProgressBarUpdate(this, 9, tileentity.ticksRequired >>> 16);
}
if (averageInput != syncAvg)
{
crafter.sendProgressBarUpdate(this, 10, syncAvg & 65535);
crafter.sendProgressBarUpdate(this, 11, syncAvg >>> 16);
}
}
this.currentEnergy = tileentity.currentEnergy;
this.adjustedStorage = tileentity.adjustedStorage;
this.adjustedMaxInput = (short)tileentity.adjustedMaxInput;