Examples of IGridNode


Examples of appeng.api.networking.IGridNode

    if(grid == null) {
      grid = new MEConduitGrid(this);
    }

    if(getNode() == null && !worldObj.isRemote) {
      IGridNode node = AEApi.instance().createGridNode(grid);
      if(node != null) {
        getBundle().setGridNode(node);
        getNode().updateState();
      }
    }
View Full Code Here

Examples of appeng.api.networking.IGridNode

    boolean foundConnection = false;

    for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
      TileEntity te = getBundle().getLocation().getLocation(dir).getTileEntity(getBundle().getWorld());
      if(te != null && te instanceof IGridHost) {
        IGridNode node = ((IGridHost) te).getGridNode(ForgeDirection.UNKNOWN);
        foundConnection |= validConnections.contains(dir);
        if(node == null) {
          node = ((IGridHost) te).getGridNode(dir.getOpposite());
        }
        if(node != null) {
          node.updateState();
        }
      }
    }
    if(!foundConnection && hasNode()) {
      getNode().destroy();
View Full Code Here

Examples of appeng.api.networking.IGridNode

  private void findNode(IGridHost host, ForgeDirection d)
  {
    if ( network == null )
    {
      IGridNode node = host.getGridNode( d );
      if ( node != null )
        network = node.getGrid();
    }
  }
View Full Code Here

Examples of appeng.api.networking.IGridNode

          powerSrc = (IPortableCell) monitorable;
        else if ( monitorable instanceof IMEChest )
          powerSrc = (IMEChest) monitorable;
        else if ( monitorable instanceof IGridHost )
        {
          IGridNode node = ((IGridHost) monitorable).getGridNode( ForgeDirection.UNKNOWN );
          if ( node != null )
          {
            networkNode = node;
            IGrid g = node.getGrid();
            if ( g != null )
              powerSrc = new ChannelPowerSrc( networkNode, (IEnergyGrid) g.getCache( IEnergyGrid.class ) );
          }
        }
      }
View Full Code Here

Examples of appeng.api.networking.IGridNode

              if ( worked && flags.contains( GridFlags.MULTIBLOCK ) )
              {
                Iterator<IGridNode> oni = ((IGridMultiblock) ((IGridNode) pi).getGridBlock()).getMultiblockNodes();
                while (oni.hasNext())
                {
                  IGridNode otherNodes = oni.next();
                  if ( otherNodes != pi )
                    semiOpen.add( (IPathItem) otherNodes );
                }
              }
            }
View Full Code Here

Examples of appeng.api.networking.IGridNode

    {
      if ( getTile() instanceof IActionHost && requiredPermission != null )
      {
        boolean requirePower = false;

        IGridNode gn = ((IActionHost) getTile()).getActionableNode();
        if ( gn != null )
        {
          IGrid g = gn.getGrid();
          if ( g != null )
          {
            if ( requirePower )
            {
              IEnergyGrid eg = g.getCache( IEnergyGrid.class );
View Full Code Here

Examples of appeng.api.networking.IGridNode

    boolean missing = false;

    IActionHost host = getActionHost();
    if ( host != null )
    {
      IGridNode agn = host.getActionableNode();
      if ( agn != null && agn.isActive() )
      {
        for (IGridNode gn : g.getMachines( TileInterface.class ))
        {
          if ( gn.isActive() )
          {
View Full Code Here

Examples of appeng.api.networking.IGridNode

    diList.clear();

    IActionHost host = getActionHost();
    if ( host != null )
    {
      IGridNode agn = host.getActionableNode();
      if ( agn != null && agn.isActive() )
      {
        for (IGridNode gn : g.getMachines( TileInterface.class ))
        {
          IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
          DualityInterface dual = ih.getInterfaceDuality();
View Full Code Here

Examples of appeng.api.networking.IGridNode

  private void findNode(IGridHost host, ForgeDirection d)
  {
    if ( network == null )
    {
      IGridNode node = host.getGridNode( d );
      if ( node != null )
        network = node.getGrid();
    }
  }
View Full Code Here

Examples of appeng.api.networking.IGridNode

  {
    IActionHost host = getActionHost();

    if ( host != null )
    {
      IGridNode gn = host.getActionableNode();
      if ( gn != null )
      {
        IGrid g = gn.getGrid();
        if ( g != null )
        {
          if ( requirePower )
          {
            IEnergyGrid eg = g.getCache( IEnergyGrid.class );
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.