Examples of containsUndamagedItem()


Examples of logisticspipes.interfaces.IInventoryUtil.containsUndamagedItem()

  public SinkReply sinksItem(ItemIdentifier item, int bestPriority, int bestCustomPriority, boolean allowDefault, boolean includeInTransit) {
    if(bestPriority > _sinkReply.fixedPriority.ordinal() || (bestPriority == _sinkReply.fixedPriority.ordinal() && bestCustomPriority >= _sinkReply.customPriority)) return null;
    IInventoryUtil targetInventory = _service.getSneakyInventory(false);
    if (targetInventory == null) return null;
   
    if (!targetInventory.containsUndamagedItem(item.getUndamaged())) return null;
   
    if(_service.canUseEnergy(3)) {
      return _sinkReply;
    }
    return null;
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.