Package appeng.api.networking.energy

Examples of appeng.api.networking.energy.IAEPowerStorage.injectAEPower()


    {
      Iterator<IAEPowerStorage> it = requesters.iterator();
      while (amt > 0 && it.hasNext())
      {
        IAEPowerStorage node = it.next();
        amt = node.injectAEPower( amt, Actionable.SIMULATE );
      }

      Iterator<IEnergyGridProvider> i = energyGridProviders.iterator();
      while (amt > 0 && i.hasNext())
        amt = i.next().injectAEPower( amt, mode, seen );
View Full Code Here


      while (amt > 0 && !requesters.isEmpty())
      {
        IAEPowerStorage node = getFirstRequester();

        amt = node.injectAEPower( amt, Actionable.MODULATE );
        if ( amt > 0 )
        {
          requesters.remove( node );
          lastRequester = null;
        }
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.