use of mezz.jei.api.gui.ingredient.IGuiItemStackGroup in project BluePower by Qmunity.
the class AlloyFurnaceHandler method setRecipe.
@Override
public void setRecipe(IRecipeLayout iRecipeLayout, StandardAlloyFurnaceRecipe recipe, IIngredients ingredients) {
IGuiItemStackGroup guiItemStackGroup = iRecipeLayout.getItemStacks();
guiItemStackGroup.init(0, false, 12, 21);
guiItemStackGroup.set(0, new ItemStack(Items.COAL));
guiItemStackGroup.init(1, false, 125, 21);
guiItemStackGroup.set(1, ingredients.getOutputs(VanillaTypes.ITEM).get(0));
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
guiItemStackGroup.init(i * 3 + j + 2, true, 38 + j * 18, 3 + i * 18);
}
}
for (int i = 0; i < recipe.getRequiredItems().size(); i++) {
List<ItemStack> itemStacks = ingredients.getInputs(VanillaTypes.ITEM).get(i);
for (ItemStack itemStack : itemStacks) {
itemStack.setCount(recipe.getRequiredCount().get(i));
}
guiItemStackGroup.set(i + 2, itemStacks);
}
}
use of mezz.jei.api.gui.ingredient.IGuiItemStackGroup in project Ceramics by KnightMiner.
the class KilnCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, KilnRecipe recipe, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(INPUT_SLOT, true, 0, 0);
guiItemStacks.init(OUTPUT_SLOT, false, 60, 18);
guiItemStacks.set(ingredients);
}
Aggregations