Package buildcraft.core.inventory.filters

Examples of buildcraft.core.inventory.filters.ArrayStackOrListFilter


  private class StationWorkbenchFilter implements IStationFilter {

    @Override
    public boolean matches(DockingStation station) {
      if (!ActionRobotFilter.canInteractWithItem(station, new ArrayStackOrListFilter(recipe.getRecipeOutput()),
          ActionStationAllowCraft.class)) {
        return false;
      }

      for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
View Full Code Here


            filteredFilter.add(tentative);
          }
        }

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

          startDelegateAI(new AIRobotFetchAndEquipItemStack(robot, arrayFilter));
        } else {
          startDelegateAI(new AIRobotGotoSleep(robot));
View Full Code Here

      if (!ai.success()) {
        terminate();
        return;
      }

      IInvSlot slot = InvUtils.getItem(robot, new ArrayStackOrListFilter(requested.stack));

      if (slot == null) {
        terminate();
        return;
      }
View Full Code Here

    Collection<ItemStack> stacks = getGateFilterStacks(station);

    if (stacks.size() == 0) {
      return new PassThroughStackFilter();
    } else {
      return new ArrayStackOrListFilter(stacks.toArray(new ItemStack[stacks.size()]));
    }
  }
View Full Code Here

TOP

Related Classes of buildcraft.core.inventory.filters.ArrayStackOrListFilter

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.