Examples of requiredPower()


Examples of appeng.api.networking.spatial.ISpatialCache.requiredPower()

        ISpatialCache sc = network.getCache( ISpatialCache.class );
        if ( eg != null )
        {
          currentPower = (long) (100.0 * eg.getStoredPower());
          maxPower = (long) (100.0 * eg.getMaxStoredPower());
          reqPower = (long) (100.0 * sc.requiredPower());
          eff = (long) (100.0f * sc.currentEfficiency());
        }
      }
    }

 
View Full Code Here

Examples of appeng.me.cache.SpatialPylonCache.requiredPower()

      ISpatialStorageCell sc = (ISpatialStorageCell) cell.getItem();

      SpatialPylonCache spc = gi.getCache( ISpatialCache.class );
      if ( spc.hasRegion() && spc.isValidRegion() )
      {
        double req = spc.requiredPower();
        double pr = energy.extractAEPower( req, Actionable.SIMULATE, PowerMultiplier.CONFIG );
        if ( Math.abs( pr - req ) < req * 0.001 )
        {
          MENetworkEvent res = gi.postEvent( new MENetworkSpatialEvent( this, req ) );
          if ( !res.isCanceled() )
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.