Package buildcraft.api.statements

Examples of buildcraft.api.statements.StatementParameterItemStack


 
    public abstract int getIconIndex();

  @Override
  public IStatementParameter createParameter(int arg0) {
    return new StatementParameterItemStack();
  }
View Full Code Here


    return 3;
  }

  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

  }

  public static boolean isForbidden(StatementSlot slot, EntityRobotBase robot) {
    for (IStatementParameter p : slot.parameters) {
      if (p != null) {
        StatementParameterItemStack actionStack = (StatementParameterItemStack) p;
        ItemStack stack = p.getItemStack();

        if (stack != null && stack.getItem() instanceof ItemRobot) {
          return ItemRobot.getRobotNBT(stack) == robot.getBoard().getNBTHandler();
        }
View Full Code Here

    icon = register.registerIcon("buildcraft:triggers/trigger_inventory_" + state.name().toLowerCase());
  }
 
  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

    icon = register.registerIcon("buildcraft:triggers/trigger_liquidcontainer_" + state.name().toLowerCase());
  }
 
  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

    return 3;
  }

  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

    return 3;
  }

  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

    return 3;
  }

  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

    return 3;
  }

  @Override
  public IStatementParameter createParameter(int index) {
    return new StatementParameterItemStack();
  }
View Full Code Here

        }

        DockingStation newStation = station;

        if (parameters[0] != null) {
          StatementParameterItemStack stackParam = (StatementParameterItemStack) parameters[0];
          ItemStack item = stackParam.getItemStack();

          if (item != null && item.getItem() instanceof ItemMapLocation) {
            BlockIndex index = ItemMapLocation.getBlockIndex(item);

            if (index != null) {
View Full Code Here

TOP

Related Classes of buildcraft.api.statements.StatementParameterItemStack

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.