Package appeng.api.networking

Examples of appeng.api.networking.IGrid


      {
        IGridNode n = ((MachineSource) src).via.getActionableNode();
        if ( n == null )
          return true;

        IGrid gn = n.getGrid();
        if ( gn != security.myGrid )
        {
          int playerID = -1;

          ISecurityGrid sg = gn.getCache( ISecurityGrid.class );
          playerID = sg.getOwner();

          if ( !security.hasPermission( playerID, permission ) )
            return true;
        }
View Full Code Here


        IGridHost gh = (IGridHost) target;
        IGridNode gn = gh.getGridNode( ForgeDirection.UNKNOWN );
        if ( gn == null )
          return;

        IGrid g = gn.getGrid();
        if ( g == null || cca.whatToMake == null )
          return;

        Future<ICraftingJob> futureJob = null;

        cca.whatToMake.setStackSize( amount );

        try
        {
          ICraftingGrid cg = g.getCache( ICraftingGrid.class );
          futureJob = cg.beginCraftingJob( cca.getWorld(), cca.getGrid(), cca.getActionSrc(), cca.whatToMake, null );

          ContainerOpenContext context = cca.openContext;
          if ( context != null )
          {
View Full Code Here

    {
      IGridHost gh = i.next();
      IGridNode n = gh.getGridNode( ForgeDirection.UNKNOWN );
      if ( n != null )
      {
        IGrid g = n.getGrid();
        if ( g != null )
        {
          g.postEvent( new MENetworkCraftingCpuChange( n ) );
          return;
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of appeng.api.networking.IGrid

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.