Package logisticspipes.interfaces

Examples of logisticspipes.interfaces.ILegacyActiveModule


    _moduleInventory.removeListener(this);
    if(MainProxy.isServer(this.getWorld())) {
      for (int i = 0; i < this.getChassiSize(); i++){
        LogisticsModule x = _module.getSubModule(i);
        if (x instanceof ILegacyActiveModule) {
          ILegacyActiveModule y = (ILegacyActiveModule)x;
          y.onBlockRemoval();
        }
      }
      for(int i=0;i<_moduleInventory.getSizeInventory();i++) {
        ItemIdentifierStack ms = _moduleInventory.getIDStackInSlot(i);
        if(ms != null) {
View Full Code Here


      //register earlier provider modules with later ones, needed for the "who is the first whose filter allows that item" check
      List<ILegacyActiveModule> prevModules = new LinkedList<ILegacyActiveModule>();
      for (int i = 0; i < this.getChassiSize(); i++){
        LogisticsModule x = _module.getSubModule(i);
        if (x instanceof ILegacyActiveModule) {
          ILegacyActiveModule y = (ILegacyActiveModule)x;
          y.registerPreviousLegacyModules(new ArrayList<ILegacyActiveModule>(prevModules));
          prevModules.add(y);
        }
      }
    }
  }
View Full Code Here

      if(filter.isBlocked() == filter.isFilteredItem(tree.getStackItem().getUndamaged()) || filter.blockProvider()) return;
    }
    for (int i = 0; i < this.getChassiSize(); i++){
      LogisticsModule x = _module.getSubModule(i);
      if (x instanceof ILegacyActiveModule){
        ILegacyActiveModule y = (ILegacyActiveModule)x;
        if(y.filterAllowsItem(tree.getStackItem())) {
          y.canProvide(tree, donePromisses, filters);
          return;
        }
      }
    }
  }
View Full Code Here

      return null;
    }
    for (int i = 0; i < this.getChassiSize(); i++) {
      LogisticsModule x = _module.getSubModule(i);
      if (x instanceof ILegacyActiveModule){
        ILegacyActiveModule y = (ILegacyActiveModule) x;
        if(y.filterAllowsItem(promise.item)) {
          spawnParticle(Particles.WhiteParticle, 2);
          return y.fullFill(promise, destination, info);
        }
      }
    }
    return null;
  }
View Full Code Here

      return;
    }
    for (int i = 0; i < this.getChassiSize(); i++){
      LogisticsModule x = _module.getSubModule(i);
      if (x instanceof ILegacyActiveModule) {
        ILegacyActiveModule y = (ILegacyActiveModule)x;
        y.getAllItems(list, filter);
      }
    }
  }
View Full Code Here

TOP

Related Classes of logisticspipes.interfaces.ILegacyActiveModule

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.