Package appeng.api.networking

Examples of appeng.api.networking.IGrid.postEvent()


    if ( node != null )
    {
      try
      {
        IGrid g = getGrid();
        g.postEvent( new MENetworkPowerIdleChange( node ) );
      }
      catch (GridAccessException e)
      {
        // not ready for this yet..
      }
View Full Code Here


      if ( n != null && !posted )
      {
        IGrid g = n.getGrid();
        if ( g != null )
        {
          g.postEvent( new MENetworkCraftingCpuChange( n ) );
          posted = true;
        }
      }

      r.updateStatus( null );
View Full Code Here

      {
        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() )
          {
            TransitionResult tr = sc.doSpatialTransition( cell, worldObj, spc.getMin(), spc.getMax(), true );
            if ( tr.success )
            {
View Full Code Here

      if ( n != null )
      {
        IGrid g = n.getGrid();
        if ( g != null )
        {
          g.postEvent( new MENetworkCraftingCpuChange( n ) );
          return;
        }
      }
    }
  }
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.