Examples of moveForward()


Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

        switch (exitdirection) {
        case DOWN:
          position.moveForward(exitdirection, 0.5);
          break;
        case UP:
          position.moveForward(exitdirection, 0.75);
          break;
        case NORTH:
        case SOUTH:
        case WEST:
        case EAST:
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

          break;
        case NORTH:
        case SOUTH:
        case WEST:
        case EAST:
          position.moveForward(exitdirection, 0.625);
          break;
        case UNKNOWN:
        default:
          break;
        }
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

        default:
          break;
        }

        LPPosition motion = new LPPosition(0, 0, 0);
        motion.moveForward(exitdirection, getSpeed() * 2F);

        EntityItem entityitem = new EntityItem(worldObj, position.getXD(), position.getYD(), position.getZD(), getItemIdentifierStack().makeNormalStack());

        //entityitem.lifespan = 1200;
        //entityitem.delayBeforeCanPickup = 10;
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

      return new HashMap<CoreRoutedPipe, ExitRoute>();
    }
    PathFinder newSearch = new PathFinder(maxVisited, maxLength, pathPainter);
    LPPosition p = new LPPosition(startProvider);
    newSearch.setVisited.add(p);
    p.moveForward(startOrientation);
    TileEntity entity = p.getTileEntity(startProvider.getWorld());
    IPipeInformationProvider provider = SimpleServiceLocator.pipeInformaitonManager.getInformationProviderFor(entity);
    if (provider == null) {
      return new HashMap<CoreRoutedPipe, ExitRoute>();
    }
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

    Iterator<LaserData> iLasers = lasers.iterator();
    while(iLasers.hasNext()) {
      boolean compressed = false;
      LaserData data = iLasers.next();
      LPPosition next = new LPPosition(data.getPosX(), data.getPosY(), data.getPosZ());
      next.moveForward(data.getDir(), data.getLength());
      boolean found = false;
      do {
        found = false;
        Iterator<LaserData> iOptions = options.iterator();
        while(iOptions.hasNext()) {
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

        while(iOptions.hasNext()) {
          LaserData d = iOptions.next();
          if(d.getPosX() == next.getX() && d.getPosY() == next.getY() && d.getPosZ() == next.getZ()) {
            if(data.getDir().equals(d.getDir()) && data.getConnectionType().equals(d.getConnectionType())) {
              data.setLength(data.getLength() + d.getLength());
              next.moveForward(data.getDir(), d.getLength());
              found = true;
              iOptions.remove();
              lasers.remove(d);
              compressed = true;
            } else if(data.getDir().equals(d.getDir())) {
View Full Code Here

Examples of logisticspipes.utils.tuples.LPPosition.moveForward()

    MainProxy.sendPacketToServer(PacketHandler.getPacket(HUDStopWatchingPacket.class).setInteger(1).setPosX(getX()).setPosY(getY()).setPosZ(getZ()));
  }
 
  private IInventory getRawInventory(ForgeDirection ori) {
    LPPosition pos = new LPPosition(this.getX(), this.getY(), this.getZ());
    pos.moveForward(ori);
    TileEntity tile = pos.getTileEntity(getWorld());
    if (SimpleServiceLocator.pipeInformaitonManager.isPipe(tile)) return null;
    if (!(tile instanceof IInventory)) return null;
    return InventoryHelper.getInventory((IInventory) tile);
  }
View Full Code Here

Examples of org.eclipse.persistence.jpa.internal.jpql.WordParser.moveForward()

        singleInputParameter = Boolean.FALSE;
      }
      else {
        WordParser wordParser = new WordParser(getInItems().toActualText());
        String word = wordParser.word();
        wordParser.moveForward(word);

        singleInputParameter = (word.length() > 0) &&
                               ExpressionTools.isParameter(word.charAt(0)) &&
                               wordParser.isTail();
      }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.WordParser.moveForward()

        singleInputParameter = Boolean.FALSE;
      }
      else {
        WordParser wordParser = new WordParser(getInItems().toActualText());
        String word = wordParser.word();
        wordParser.moveForward(word);

        singleInputParameter = (word.length() > 0) &&
                               ExpressionTools.isParameter(word.charAt(0)) &&
                               wordParser.isTail();
      }
View Full Code Here

Examples of org.eclipse.persistence.jpa.jpql.WordParser.moveForward()

        singleInputParameter = Boolean.FALSE;
      }
      else {
        WordParser wordParser = new WordParser(getInItems().toActualText());
        String word = wordParser.word();
        wordParser.moveForward(word);

        singleInputParameter = (word.length() > 0) &&
                               ExpressionTools.isParameter(word.charAt(0)) &&
                               wordParser.isTail();
      }
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.