Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotGotoStationToLoad


  }

  @Override
  public void update() {
    if (!robot.containsItems()) {
      startDelegateAI(new AIRobotGotoStationToLoad(robot, ActionRobotFilter.getGateFilter(robot
          .getLinkedStation()), robot.getZoneToWork()));
    } else {
      startDelegateAI(new AIRobotGotoStationAndUnload(robot, robot.getZoneToWork()));
    }
  }
View Full Code Here


    } else if (ai instanceof AIRobotGotoStationAndUnload) {
      if (ai.success()) {
        unloadFound = true;
      } else {
        unloadFound = false;
        startDelegateAI(new AIRobotGotoStationToLoad(robot, ActionRobotFilter.getGateFilter(robot
            .getLinkedStation()), robot.getZoneToWork()));
      }
    }

    if (!loadFound && !unloadFound) {
View Full Code Here

        containItems = true;
      }
    }

    if (!containItems) {
      startDelegateAI(new AIRobotGotoStationToLoad(robot, TNT_FILTER, null));
    } else {
      startDelegateAI(new AIRobotSearchRandomGroundBlock(robot, 100, new IBlockFilter() {
        @Override
        public boolean matches(World world, int x, int y, int z) {
          return y < world.getActualHeight() - flyingHeight && !world.isAirBlock(x, y, z);
View Full Code Here

      // handle e.g. not enough free spots? If there's more than X slots
      // found that can't be built, go to sleep.
    }

    if (requirementsToLookFor != null && requirementsToLookFor.size() > 0) {
      startDelegateAI(new AIRobotGotoStationToLoad(robot,
          new ArrayStackFilter(requirementsToLookFor.getFirst()),
          robot.getZoneToWork()));
    }

    if (currentBuildingSlot != null && requirementsToLookFor != null && requirementsToLookFor.size() == 0) {
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotGotoStationToLoad

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.