Package buildcraft.core.utils

Examples of buildcraft.core.utils.PathFindingJob


    if (path == null && pathSearch == null) {
      pathSearch = new PathFinding(robot.worldObj, new BlockIndex((int) Math.floor(robot.posX),
          (int) Math.floor(robot.posY), (int) Math.floor(robot.posZ)), new BlockIndex(
          (int) Math.floor(finalX), (int) Math.floor(finalY), (int) Math.floor(finalZ)), maxDistance);

      pathSearchJob = new PathFindingJob(pathSearch, 100);
      pathSearchJob.start();
    } else if (path != null) {
      double distance = robot.getDistance(nextX, nextY, nextZ);

      if (!robot.isMoving() || distance > prevDistance) {
View Full Code Here


  }

  @Override
  public void start() {
    blockScanner = new PathFinding(robot.worldObj, new BlockIndex(robot), pathFound, 64, robot.getZoneToWork());
    blockScannerJob = new PathFindingJob(blockScanner);
    blockScannerJob.start();
  }
View Full Code Here

        terminate();
      }

      blockFound = aiFind.blockFound;
      pathFinding = new PathFinding(robot.worldObj, new BlockIndex(robot), blockFound);
      pathFindingJob = new PathFindingJob(pathFinding);
      pathFindingJob.start();
    } else if (ai instanceof AIRobotGotoBlock) {
      terminate();
    }
  }
View Full Code Here

TOP

Related Classes of buildcraft.core.utils.PathFindingJob

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.