Package logisticspipes.proxy.computers.objects

Examples of logisticspipes.proxy.computers.objects.CCSinkResponder


        if(c == 0) c = o1.getValue2() - o2.getValue2();
        return c;
      }});
    boolean sended = false;
    for(Triplet<Integer, Integer, CCSinkResponder> triple:posibilities) {
      CCSinkResponder sink = triple.getValue3();
      if(sink.getCanSink() < 0) continue;
      stack = invUtil.getStackInSlot(slot);
      if(stack == null || stack.stackSize <= 0) continue;
      int amount = Math.min(stack.stackSize, sink.getCanSink());
      ItemStack extracted = invUtil.decrStackSize(slot, amount);
      _service.sendStack(extracted, sink.getRouterId(), ItemSendMode.Fast, null);
      sended = true;
    }
    return sended;
  }
View Full Code Here


    return false;
  }
 
  @Override
  public List<CCSinkResponder> queueCCSinkEvent(ItemIdentifierStack item) {
    CCSinkResponder resonse = new CCSinkResponder(item, _service.getSourceID(), eventQueuer);
    eventQueuer.queueEvent("ItemSink", new Object[]{SimpleServiceLocator.ccProxy.getAnswer(resonse)});
    return new OneList<CCSinkResponder>(resonse);
  }
View Full Code Here

TOP

Related Classes of logisticspipes.proxy.computers.objects.CCSinkResponder

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.