use of com.bluepowermod.recipe.AlloyFurnaceRegistry.StandardAlloyFurnaceRecipe in project BluePower by Qmunity.
the class AlloyFurnaceHandler method setIngredients.
@Override
public void setIngredients(StandardAlloyFurnaceRecipe recipe, IIngredients ingredients) {
List<List<ItemStack>> items = recipe.getRequiredItems().stream().map(ingredient -> Arrays.asList(ingredient.getItems())).collect(Collectors.toList());
for (int i = 0; i < items.size(); i++) {
for (ItemStack itemStack : items.get(i)) {
itemStack.setCount(recipe.getRequiredCount().get(i));
}
}
ingredients.setInputLists(VanillaTypes.ITEM, items);
ingredients.setOutput(VanillaTypes.ITEM, recipe.getResultItem());
}
Aggregations