Examples of interestedInAttachedInventory()


Examples of logisticspipes.modules.abstractmodules.LogisticsModule.interestedInAttachedInventory()

    Set<ItemIdentifier> l1 = new TreeSet<ItemIdentifier>();
    //if we don't have a pointed inventory we can't be interested in anything
    if(getSneakyInventory(false) == null) return l1;
    for (int moduleIndex = 0; moduleIndex < this.getChassiSize(); moduleIndex++){
      LogisticsModule module = _module.getSubModule(moduleIndex);
      if(module!=null && module.interestedInAttachedInventory()) {
        IInventoryUtil inv = getSneakyInventory(false);
        Set<ItemIdentifier> items = inv.getItems();
        l1.addAll(items);

        //also add tag-less variants ... we should probably add a module.interestedIgnoringNBT at some point
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.