Examples of doesItemPassFilter()


Examples of crazypants.enderio.conduit.item.filter.IItemFilter.doesItemPassFilter()

    }
    IItemFilter filter = con.getInputFilter(conDir);
    if(filter == null) {
      return true;
    }
    return filter.doesItemPassFilter(this, itemStack);
  }

  private boolean doTransfer(ItemStack extractedItem, int slot, int maxExtract) {
    if(extractedItem == null || extractedItem.getItem() == null) {
      return false;
View Full Code Here

Examples of crazypants.enderio.conduit.item.filter.IItemFilter.doesItemPassFilter()

    //for (Target target : sendPriority) {
    for (Target target : targets) {
      if(target.stickyInput && !matchedStickyInput) {
        IItemFilter of = target.inv.con.getOutputFilter(target.inv.conDir);
        matchedStickyInput = of != null && of.isValid() && of.doesItemPassFilter(this, toExtract);
      }
      if(target.stickyInput || !matchedStickyInput) {
        if(target.inv.recheckInv) {
          target.inv.updateInventory();
        }
View Full Code Here

Examples of crazypants.enderio.conduit.item.filter.IItemFilter.doesItemPassFilter()

    if(!canInsert() || item == null) {
      return 0;
    }
    IItemFilter filter = con.getOutputFilter(conDir);
    if(filter != null) {
      if(!filter.doesItemPassFilter(this, item)) {
        return 0;
      }
    }
    return ItemUtil.doInsertItem(getInventory(), item, ForgeDirection.values()[inventorySide]);
  }
View Full Code Here

Examples of crazypants.enderio.conduit.item.filter.IItemFilter.doesItemPassFilter()

      if(source.con.getLocation().equals(con.getLocation())) {
        if(source != null && source.sendPriority != null) {
          for (Target t : source.sendPriority) {
            IItemFilter f = t.inv.con.getOutputFilter(t.inv.conDir);
            if(input == null || f == null || f.doesItemPassFilter(t.inv, input)) {
              String s = Lang.localize(t.inv.getInventory().getInventoryName(), false) + " " + t.inv.location + " Distance [" + t.distance + "] ";
              result.add(s);
            }
          }
        }
View Full Code Here

Examples of crazypants.enderio.conduit.item.filter.IItemFilter.doesItemPassFilter()

  public List<String> getInputSourcesFor(IItemConduit con, ForgeDirection dir, ItemStack input) {
    List<String> result = new ArrayList<String>();
    for (NetworkedInventory inv : inventories) {
      if(inv.hasTarget(con, dir)) {
        IItemFilter f = inv.con.getInputFilter(inv.conDir);
        if(input == null || f == null || f.doesItemPassFilter(inv, input)) {
          result.add(Lang.localize(inv.getInventory().getInventoryName(), false) + " " + inv.location);
        }
      }
    }
    return result;
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.