Package appeng.api.networking.energy

Examples of appeng.api.networking.energy.IEnergyGridProvider


    }

    Iterator<IEnergyGridProvider> ix = energyGridProviders.iterator();
    while (required < maxRequired && ix.hasNext())
    {
      IEnergyGridProvider node = ix.next();
      required += node.getEnergyDemand( maxRequired - required, seen );
    }

    return required;
  }
View Full Code Here


      }

      Iterator<IEnergyGridProvider> i = energyGridProviders.iterator();
      while (amt > 0 && i.hasNext())
      {
        IEnergyGridProvider what = i.next();
        Set<IEnergyGrid> listCopy = new HashSet<IEnergyGrid>();
        listCopy.addAll( seen );

        double cannotHold = what.injectAEPower( amt, Actionable.SIMULATE, listCopy );
        what.injectAEPower( amt - cannotHold, mode, seen );

        amt = cannotHold;
      }

      extra = amt;
View Full Code Here

TOP

Related Classes of appeng.api.networking.energy.IEnergyGridProvider

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.