Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotSearchEntity


        public boolean matches(ItemStack stack) {
          return stack.getItem() instanceof ItemSword;
        }
      }));
    } else {
      startDelegateAI(new AIRobotSearchEntity(robot, new IEntityFilter() {
        @Override
        public boolean matches(Entity entity) {
          return entity instanceof EntityAnimal;
        }
      }, 250, robot.getZoneToWork()));
View Full Code Here


    if (ai instanceof AIRobotFetchAndEquipItemStack) {
      if (robot.getHeldItem() == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotSearchEntity) {
      AIRobotSearchEntity mobAI = (AIRobotSearchEntity) ai;

      if (mobAI.target != null) {
        startDelegateAI(new AIRobotAttack(robot, ((AIRobotSearchEntity) ai).target));
      } else {
        startDelegateAI(new AIRobotGotoSleep(robot));
View Full Code Here

        public boolean matches(ItemStack stack) {
          return stack.getItem() instanceof ItemSword;
        }
      }));
    } else {
      startDelegateAI(new AIRobotSearchEntity(robot, new IEntityFilter() {
        @Override
        public boolean matches(Entity entity) {
          return entity instanceof EntityMob;
        }
      }, 250, robot.getZoneToWork()));
View Full Code Here

    if (ai instanceof AIRobotFetchAndEquipItemStack) {
      if (robot.getHeldItem() == null) {
        startDelegateAI(new AIRobotGotoSleep(robot));
      }
    } else if (ai instanceof AIRobotSearchEntity) {
      AIRobotSearchEntity mobAI = (AIRobotSearchEntity) ai;

      if (mobAI.target != null) {
        startDelegateAI(new AIRobotAttack(robot, ((AIRobotSearchEntity) ai).target));
      } else {
        startDelegateAI(new AIRobotGotoSleep(robot));
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotSearchEntity

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.