Package appeng.api.networking.spatial

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


          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

Related Classes of appeng.api.networking.spatial.ISpatialCache

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.