Examples of AIRobotUseToolOnBlock


Examples of buildcraft.core.robots.AIRobotUseToolOnBlock

      AIRobotGotoRandomGroundBlock gotoBlock = (AIRobotGotoRandomGroundBlock) ai;

      if (gotoBlock.blockFound == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      } else {
        startDelegateAI(new AIRobotUseToolOnBlock(robot, gotoBlock.blockFound));
      }
    } else if (ai instanceof AIRobotSearchBlock) {
      AIRobotSearchBlock gotoBlock = (AIRobotSearchBlock) ai;

      if (gotoBlock.blockFound != null
          && robot.getRegistry().take(new ResourceIdBlock(gotoBlock.blockFound), robot)) {

        if (blockFound != null) {
          robot.getRegistry().release(new ResourceIdBlock(blockFound));
        }

        blockFound = gotoBlock.blockFound;
        startDelegateAI(new AIRobotGotoBlock(robot, gotoBlock.path));
      } else {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotGotoBlock) {
      startDelegateAI(new AIRobotUseToolOnBlock(robot, blockFound));
    } else if (ai instanceof AIRobotFetchAndEquipItemStack) {
      if (robot.getHeldItem() == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    }
View Full Code Here

Examples of buildcraft.core.robots.AIRobotUseToolOnBlock

        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotGotoBlock) {
      AIRobotGotoBlock gotoBlock = (AIRobotGotoBlock) ai;

      startDelegateAI(new AIRobotUseToolOnBlock(robot, blockFound));
    } else if (ai instanceof AIRobotFetchAndEquipItemStack) {
      if (robot.getHeldItem() == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotUseToolOnBlock) {
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.