Package buildcraft.core.inventory.filters

Examples of buildcraft.core.inventory.filters.StatementParameterStackFilter


    Pipe pipe = station.getPipe().pipe;

    for (StatementSlot s : new ActionIterator(pipe)) {
      if (actionClass.isAssignableFrom(s.statement.getClass())) {
        StatementParameterStackFilter param = new StatementParameterStackFilter(s.parameters);

        if (!param.hasFilter() || param.matches(filter)) {
          actionFound = true;
          break;
        }
      }
    }
View Full Code Here


    boolean actionFound = false;
    Pipe pipe = station.getPipe().pipe;

    for (StatementSlot s : new ActionIterator(pipe)) {
      if (actionClass.isAssignableFrom(s.statement.getClass())) {
        StatementParameterStackFilter param = new StatementParameterStackFilter(s.parameters);

        if (!param.hasFilter()) {
          actionFound = true;
          break;
        } else {
          for (ItemStack stack : param.getStacks()) {
            if (stack != null) {
              FluidStack fluid = FluidContainerRegistry.getFluidForFilledItem(stack);

              if (fluid != null && filter.matches(fluid.getFluid())) {
                actionFound = true;
View Full Code Here

    super(name);
  }

  public boolean insert(DockingStation station, EntityRobot robot, StatementSlot actionSlot, IInvSlot invSlot,
      boolean doInsert) {
    StatementParameterStackFilter param = new StatementParameterStackFilter(actionSlot.parameters);

    return !param.hasFilter() || param.matches(invSlot.getStackInSlot());
  }
View Full Code Here

TOP

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

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.