Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotGotoRandomGroundBlock


                && !robot.getRegistry().isTaken(new ResourceIdBlock(x, y, z))
                && isAirAbove(world, x, y, z);
          }
        }));
      } else {
        startDelegateAI(new AIRobotGotoRandomGroundBlock(robot, 100, new IBlockFilter() {
          @Override
          public boolean matches(World world, int x, int y, int z) {
            Block b = robot.worldObj.getBlock(x, y, z);

            return b instanceof BlockDirt || b instanceof BlockGrass;
View Full Code Here


  }

  @Override
  public void delegateAIEnded(AIRobot ai) {
    if (ai instanceof AIRobotGotoRandomGroundBlock) {
      AIRobotGotoRandomGroundBlock gotoBlock = (AIRobotGotoRandomGroundBlock) ai;

      if (gotoBlock.blockFound == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      } else {
        startDelegateAI(new AIRobotUseToolOnBlock(robot, gotoBlock.blockFound));
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotGotoRandomGroundBlock

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.