Package logisticspipes.utils

Examples of logisticspipes.utils.SinkReply


    return result;
  }
 
  public static SinkReply canSink(IRouter destination, IRouter sourceRouter, boolean excludeSource,ItemIdentifier stack,SinkReply result, boolean activeRequest, boolean allowDefault) {

    SinkReply reply = null;
    LogisticsModule module = destination.getLogisticsModule();
    CoreRoutedPipe crp = destination.getPipe();
    if (module == null) return null;
    if (!(module.recievePassive() || activeRequest))
      return null;
View Full Code Here


    }
    if (!_chassiPipe.isEnabled())  {
      _chassiPipe.notifyOfItemArival(item.getInfo());
      return false;
    }
    SinkReply reply = module.sinksItem(item.getItemIdentifierStack().getItem(), -1, 0, true,false);
    if (reply == null) {
      _chassiPipe.notifyOfItemArival(item.getInfo());
      return false;
    }
   
View Full Code Here

    int targetCount = _filterInventory.itemCount(item);
    int haveCount = targetUtil.itemCount(item);
    if (targetCount <= haveCount) return null;
   
    if(_service.canUseEnergy(2)) {
      return new SinkReply(_sinkReply, targetCount - haveCount);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of logisticspipes.utils.SinkReply

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.