Package crazypants.enderio.machine.recipe

Examples of crazypants.enderio.machine.recipe.RecipeInput


  public void addRecipe(ItemStack input, int energyCost, RecipeOutput... output) {
    if(input == null || output == null) {
      return;
    }
    addRecipe(new Recipe(new RecipeInput(input, false), energyCost, output));
  }
View Full Code Here


    if(EXCLUDES_ROOT.equals(localName)) {
      processExclude = true;
      return true;
    }
    if(processStack && RecipeConfigParser.ELEMENT_ITEM_STACK.equals(localName)) {
      RecipeInput ri = RecipeConfigParser.getItemStack(attributes);
      if(ri != null) {
        GrindingBall gb = new GrindingBall(ri, gm, cm, pm, drf);
        balls.add(gb);
      }
    }
    if(processExclude && RecipeConfigParser.ELEMENT_ITEM_STACK.equals(localName)) {
      RecipeInput ri = RecipeConfigParser.getItemStack(attributes);
      if(ri != null) {
        excludes.add(ri);
      }
    }
View Full Code Here

          enabled = RecipeConfigParser.getBooleanValue(RecipeConfigParser.AT_ENABLED, attributes, defVal);
        }
      } else if(ELEMENT_EXCLUDE.equals(localName)) {
        inExcludes = true;
      } else if(inExcludes && RecipeConfigParser.ELEMENT_ITEM_STACK.equals(localName)) {
        RecipeInput ri = RecipeConfigParser.getItemStack(attributes);
        excludes.add(ri);
      }
      return inTag;
    }
View Full Code Here

      return Collections.emptyList();
    }
    List<IRecipe> result = new ArrayList<IRecipe>();
    Map<ItemStack, ItemStack> metaList = FurnaceRecipes.smelting().getSmeltingList();
    for (Entry<ItemStack, ItemStack> entry : metaList.entrySet()) {
      result.add(new Recipe(new RecipeInput(entry.getKey()), RF_PER_ITEM, new RecipeOutput(entry.getValue())));
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.machine.recipe.RecipeInput

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.