return PowerConversionUtils.INSTANCE.new EmptyPack();
else if (toDischarge.getItem() == null)
return PowerConversionUtils.INSTANCE.new EmptyPack();
else if (toDischarge.getItem() instanceof IItemElectric)
{
IItemElectric item = (IItemElectric) toDischarge.getItem();
UEElectricPack request = PowerConversionUtils.INSTANCE.new UEElectricPack(item.discharge(toDischarge, maxRequest.toUEWatts(), false));
GenericPack actualTransmitted = getSmallest(maxRequest, request);
item.discharge(toDischarge, actualTransmitted.toUEWatts(), true);
return actualTransmitted;
}
else
return PowerConversionUtils.INSTANCE.new EmptyPack();