Package logisticspipes.modules.abstractmodules

Examples of logisticspipes.modules.abstractmodules.LogisticsModule


    return _chassiPipe.getPointedOrientation();
  }

  @Override
  public boolean stillWantItem(IRoutedItem item) {
    LogisticsModule module = _chassiPipe.getLogisticsModule();
    if (module == null) {
      _chassiPipe.notifyOfItemArival(item.getInfo());
      return false;
    }
    if (!_chassiPipe.isEnabled())  {
      _chassiPipe.notifyOfItemArival(item.getInfo());
      return false;
    }
    SinkReply reply = module.sinksItem(item.getItemIdentifierStack().getItem(), -1, 0, true,false);
    if (reply == null) {
      _chassiPipe.notifyOfItemArival(item.getInfo());
      return false;
    }
   
View Full Code Here


        LogisticsPipes.log.fatal(this.toString());
        new RuntimeException("Couldn't find " + clazz.getName() + ", pipe didn't exsist").printStackTrace();
      }
      return null;
    }
    LogisticsModule module = null;
    if(this.slot == ModulePositionType.IN_PIPE) {
      module = ((CoreRoutedPipe)pipe.pipe).getLogisticsModule();
    } else if (this.slot == ModulePositionType.IN_HAND) {
      throw new UnsupportedOperationException("NO IN_HAND FOR THIS PACKET TYPE");
    } else {
      if(!(pipe.pipe instanceof PipeLogisticsChassi)) {
        if(LPConstants.DEBUG) {
          LogisticsPipes.log.fatal(this.toString());
          new RuntimeException("Couldn't find " + clazz.getName() + ", pipe wasn't a chassi pipe").printStackTrace();
        }
        return null;
      }
      module = ((PipeLogisticsChassi)pipe.pipe).getLogisticsModule().getSubModule(positionInt);
    }
    if(module != null) {
      if(!(clazz.isAssignableFrom(module.getClass()))) {
        if(LPConstants.DEBUG) {
          LogisticsPipes.log.fatal(this.toString());
          new RuntimeException("Couldn't find " + clazz.getName() + ", found " + module.getClass()).printStackTrace();
        }
        return null;
      }
    } else {
      if(LPConstants.DEBUG) {
View Full Code Here

TOP

Related Classes of logisticspipes.modules.abstractmodules.LogisticsModule

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.