Examples of ISpatialCache


Examples of appeng.api.networking.spatial.ISpatialCache

      if ( delay > 15 && network != null )
      {
        delay = 0;

        IEnergyGrid eg = network.getCache( IEnergyGrid.class );
        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());
        }
      }
    }

    super.detectAndSendChanges();
 
View Full Code Here

Examples of appeng.api.networking.spatial.ISpatialCache

          if ( n != null )
          {
            IGrid g = n.getGrid();
            if ( g != null )
            {
              ISpatialCache sc = g.getCache( ISpatialCache.class );
              if ( sc.isValidRegion() )
              {
                DimensionalCoord min = sc.getMin();
                DimensionalCoord max = sc.getMax();

                x += currentSideOff.offsetX;
                y += currentSideOff.offsetY;
                z += currentSideOff.offsetZ;
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.