Examples of AIRobotGotoBlock


Examples of buildcraft.core.robots.AIRobotGotoBlock

        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));
View Full Code Here

Examples of buildcraft.core.robots.AIRobotGotoBlock

    if (ai instanceof AIRobotGotoStationToLoad) {
      startDelegateAI(new AIRobotLoad(robot, TNT_FILTER));
    } else if (ai instanceof AIRobotSearchRandomGroundBlock) {
      AIRobotSearchRandomGroundBlock aiFind = (AIRobotSearchRandomGroundBlock) ai;

      startDelegateAI(new AIRobotGotoBlock(robot, aiFind.blockFound.x, aiFind.blockFound.y + flyingHeight,
          aiFind.blockFound.z));
    } else if (ai instanceof AIRobotGotoBlock) {
      ITransactor t = Transactor.getTransactorFor(robot);
      ItemStack stack = t.remove(TNT_FILTER, ForgeDirection.UNKNOWN, true);
View Full Code Here

Examples of buildcraft.core.robots.AIRobotGotoBlock

        if (!robot.getRegistry().take(new ResourceIdBlock (blockFound), robot)) {
          blockFound = null;
          startDelegateAI(new AIRobotGotoSleep(robot));
        } else {
          startDelegateAI(new AIRobotGotoBlock(robot, ((AIRobotSearchBlock) ai).path));
        }
      }
    } else if (ai instanceof AIRobotGotoBlock) {
      if (!ai.success()) {
        startDelegateAI(new AIRobotGotoSleep(robot));
View Full Code Here

Examples of buildcraft.core.robots.AIRobotGotoBlock

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

        blockFound = searchAI.blockFound;
        startDelegateAI(new AIRobotGotoBlock(robot, searchAI.path));
      } else {
        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));
View Full Code Here

Examples of buildcraft.core.robots.AIRobotGotoBlock

      }

      if (robot.getEnergy() - currentBuildingSlot.getEnergyRequirement() < EntityRobotBase.SAFETY_ENERGY) {
        startDelegateAI(new AIRobotRecharge(robot));
      } else {
        startDelegateAI(new AIRobotGotoBlock(robot,
          (int) currentBuildingSlot.getDestination().x,
          (int) currentBuildingSlot.getDestination().y,
          (int) currentBuildingSlot.getDestination().z,
          8));
      }
View Full Code Here

Examples of buildcraft.core.robots.AIRobotGotoBlock

      if (indexStored == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      } else {
        if (robot.getRegistry().take(new ResourceIdBlock(indexStored), robot)) {
          startDelegateAI(new AIRobotGotoBlock(robot, ((AIRobotSearchBlock) ai).path));
        }
      }
    } else if (ai instanceof AIRobotGotoBlock) {
      startDelegateAI(new AIRobotBreak(robot, indexStored));
    } else if (ai instanceof AIRobotBreak) {
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.