public long produce(IConductor conductor, ForgeDirection from, long amount, boolean doReceive)
{
TileEntity tile = null;
if (conductor instanceof TileEntity)
{
tile = new Vector3((TileEntity) conductor).translate(from).getTileEntity(((TileEntity) conductor).worldObj);
}
//Don't accept power from under powered generators
if (tile instanceof IVoltageOutput && !(tile instanceof IConductor))
{
if (((IVoltageOutput) tile).getVoltageOutput(from) < voltage)