Examples of AIRobotGotoStationToLoad


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

Examples of buildcraft.core.robots.AIRobotGotoStationToLoad

    } 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

Examples of buildcraft.core.robots.AIRobotGotoStationToLoad

        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

Examples of buildcraft.core.robots.AIRobotGotoStationToLoad

      // 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
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.