Examples of AIRobotFetchAndEquipItemStack


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

Examples of buildcraft.core.robots.AIRobotFetchAndEquipItemStack

  }

  @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

Examples of buildcraft.core.robots.AIRobotFetchAndEquipItemStack

  }

  @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

Examples of buildcraft.core.robots.AIRobotFetchAndEquipItemStack

  }

  @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

Examples of buildcraft.core.robots.AIRobotFetchAndEquipItemStack

  }

  @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
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.