Package logisticspipes.routing

Examples of logisticspipes.routing.IRouterManager


    }
  }

  public static void tick() {
    if(firstRouter == -1) return;
    IRouterManager rm = SimpleServiceLocator.routerManager;
    int slotSentCount = 0;
    //cork the compressor
    SimpleServiceLocator.serverBufferHandler.setPause(true);
    while(firstRouter != -1 && slotSentCount < inventorySlotsToUpdatePerTick){
      routersNeedingUpdate.clear(firstRouter);
      IRouter currentRouter = rm.getRouterUnsafe(firstRouter, false);
      if(currentRouter != null) {
        CoreRoutedPipe pipe = currentRouter.getCachedPipe();
        if(pipe!=null)
          slotSentCount += pipe.sendQueueChanged(true);
      }
View Full Code Here


      return info.destinationUUID;
    }

    @Override
    public void checkIDFromUUID() { 
      IRouterManager rm = SimpleServiceLocator.routerManager;
      IRouter router = rm.getRouter(info.destinationint);
      if(router == null || info.destinationUUID != router.getId()) {
        info.destinationint = rm.getIDforUUID(info.destinationUUID);
      }
    }
View Full Code Here

TOP

Related Classes of logisticspipes.routing.IRouterManager

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.