Package universalelectricity.core.item

Examples of universalelectricity.core.item.IItemElectric.discharge()


                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


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

TOP
Copyright © 2018 www.massapi.com. 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.