Package electricexpansion.common.misc.PowerConversionUtils

Examples of electricexpansion.common.misc.PowerConversionUtils.UEElectricPack


                return pack;
            else if (toCharge.getItem() instanceof IItemElectric)
            {
                IItemElectric item = (IItemElectric) toCharge.getItem();
               
                UEElectricPack request = PowerConversionUtils.INSTANCE.new UEElectricPack(item.getTransfer(toCharge));
                GenericPack actualTransmitted = getSmallest(pack, request);
               
                item.recharge(toCharge, actualTransmitted.toUEWatts(), true);
               
                return actualTransmitted;
View Full Code Here


                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;
View Full Code Here

TOP

Related Classes of electricexpansion.common.misc.PowerConversionUtils.UEElectricPack

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.