Package buildcraft.core.robots

Examples of buildcraft.core.robots.AIRobotFetchAndEquipItemStack


        if (filteredFilter.size() > 0) {
          ArrayStackFilter arrayFilter = new ArrayStackOrListFilter(
              filteredFilter.toArray(new ItemStack[filteredFilter.size()]));

          startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, arrayFilter));
        } else {
          startDelegateAI(new AIRobotGotoSleep(robot));
        }
      } else {
        startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, stackFilter));
      }
    } else {
      if (robot.getHeldItem().getItem() instanceof ItemSeeds) {
        startDelegateAI(new AIRobotSearchBlock(robot, new IBlockFilter() {
          @Override
View Full Code Here


  }

  @Override
  public final void update() {
    if (robot.getHeldItem() == null) {
      startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, new IStackFilter() {
        @Override
        public boolean matches(ItemStack stack) {
          return stack.getItem() instanceof ItemSword;
        }
      }));
View Full Code Here

  }

  @Override
  public final void update() {
    if (robot.getHeldItem() == null) {
      startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, new IStackFilter() {
        @Override
        public boolean matches(ItemStack stack) {
          return stack.getItem() instanceof ItemSword;
        }
      }));
View Full Code Here

  }

  @Override
  public void update() {
    if (robot.getHeldItem() == null) {
      startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, new IStackFilter() {
        @Override
        public boolean matches(ItemStack stack) {
          return stack != null && stack.getItem() instanceof ItemHoe;
        }
      }));
View Full Code Here

  }

  @Override
  public final void update() {
    if (!isExpectedTool(null) && robot.getHeldItem() == null) {
      startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, new IStackFilter() {
        @Override
        public boolean matches(ItemStack stack) {
          return isExpectedTool(stack);
        }
      }));
View Full Code Here

TOP

Related Classes of buildcraft.core.robots.AIRobotFetchAndEquipItemStack

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.