TileGenericPipe nearbyTile = (TileGenericPipe) needsPower.get(b).tile;
PipeTransportPower nearbyTransport = (PipeTransportPower) nearbyTile.pipe.transport;
nearbyTransport.receiveEnergy(needsPower.get(b).ori, powerToSend);
}
else if (needsPower.get(b).tile instanceof IPowerReceptor) {
IPowerReceptor pow = (IPowerReceptor) needsPower.get(b);
pow.getPowerProvider().receiveEnergy((int)powerToSend);
}
}
}