Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotRecharge


        // prepare the slot.
        markerToBuild.bluePrintBuilder.useRequirements(robot, currentBuildingSlot);
      }

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


        // defensive code, in case of a wrong load from NBT
        return;
      }

      if (robot.getEnergy() - currentBuildingSlot.getEnergyRequirement() < EntityRobotBase.SAFETY_ENERGY) {
        startDelegateAI(new AIRobotRecharge(robot));
        return;
      }

      robot.getBattery().extractEnergy(currentBuildingSlot.getEnergyRequirement(), false);
      launchingDelay = currentBuildingSlot.getStacksToDisplay().size() * BuildingItem.ITEMS_SPACE;
 
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotRecharge

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.