Package logisticspipes.routing

Examples of logisticspipes.routing.ItemRoutingInformation


   */
  @ModDependentMethod(modId="BuildCraft|Transport")
  public void injectItem(TravelingItem item, ForgeDirection inputOrientation) {
    if(MainProxy.isServer(this.getWorld())) {
      if(item instanceof LPRoutedBCTravelingItem) {
        ItemRoutingInformation info = ((LPRoutedBCTravelingItem)item).getRoutingInformation();
        info.setItem(ItemIdentifierStack.getFromStack(item.getItemStack()));
        LPTravelingItemServer lpItem = new LPTravelingItemServer(info);
        this.injectItem(lpItem, inputOrientation);
      } else {
        ItemRoutingInformation info = LPRoutedBCTravelingItem.restoreFromExtraNBTData(item);
        if(info != null) {
          info.setItem(ItemIdentifierStack.getFromStack(item.getItemStack()));
          LPTravelingItemServer lpItem = new LPTravelingItemServer(info);
          this.injectItem(lpItem, inputOrientation);
        } else {
          LPTravelingItemServer lpItem = SimpleServiceLocator.routedItemHelper.createNewTravelItem(item.getItemStack());
          lpItem.setSpeed(item.getSpeed());
View Full Code Here

TOP

Related Classes of logisticspipes.routing.ItemRoutingInformation

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.