use of mezz.jei.api.gui.IGuiItemStackGroup in project ImmersiveEngineering by BluSunrize.
the class FermenterRecipeCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, FermenterRecipeWrapper recipeWrapper, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(0, true, 1, 6);
guiItemStacks.init(1, false, 84, 40);
guiItemStacks.set(0, ingredients.getInputs(ItemStack.class).get(0));
guiItemStacks.set(1, ingredients.getOutputs(ItemStack.class));
IGuiFluidStackGroup guiFluidStacks = recipeLayout.getFluidStacks();
guiFluidStacks.init(0, false, 106, 9, 16, 47, 24000, false, tankOverlay);
guiFluidStacks.set(0, ingredients.getOutputs(FluidStack.class));
guiFluidStacks.addTooltipCallback(JEIHelper.fluidTooltipCallback);
}
use of mezz.jei.api.gui.IGuiItemStackGroup in project ImmersiveEngineering by BluSunrize.
the class BlastFurnaceRecipeCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, BlastFurnaceRecipeWrapper recipeWrapper, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(0, true, 43, 8);
guiItemStacks.init(1, false, 103, 8);
guiItemStacks.init(2, false, 103, 44);
guiItemStacks.set(0, ingredients.getInputs(ItemStack.class).get(0));
guiItemStacks.set(1, recipeWrapper.getSmeltingOutput());
guiItemStacks.set(2, recipeWrapper.getSlagOutput());
}
use of mezz.jei.api.gui.IGuiItemStackGroup in project ImmersiveEngineering by BluSunrize.
the class BlastFurnaceFuelCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, BlastFurnaceFuelWrapper recipeWrapper, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(0, true, 0, 14);
guiItemStacks.set(0, ingredients.getInputs(ItemStack.class).get(0));
}
use of mezz.jei.api.gui.IGuiItemStackGroup in project ImmersiveEngineering by BluSunrize.
the class CokeOvenRecipeCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, CokeOvenRecipeWrapper recipeWrapper, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(0, true, 21, 21);
guiItemStacks.init(1, false, 76, 21);
guiItemStacks.set(0, ingredients.getInputs(ItemStack.class).get(0));
guiItemStacks.set(1, ingredients.getOutputs(ItemStack.class));
IGuiFluidStackGroup guiFluidStacks = recipeLayout.getFluidStacks();
guiFluidStacks.init(0, false, 121, 7, 16, 47, 12000, false, tankOverlay);
guiFluidStacks.set(0, ingredients.getOutputs(FluidStack.class));
guiFluidStacks.addTooltipCallback(JEIHelper.fluidTooltipCallback);
}
use of mezz.jei.api.gui.IGuiItemStackGroup in project ImmersiveEngineering by BluSunrize.
the class CrusherRecipeCategory method setRecipe.
@Override
public void setRecipe(IRecipeLayout recipeLayout, CrusherRecipeWrapper recipeWrapper, IIngredients ingredients) {
IGuiItemStackGroup guiItemStacks = recipeLayout.getItemStacks();
guiItemStacks.init(0, true, 20, 3);
guiItemStacks.init(1, false, 102, 3);
outputSlots = new int[recipeWrapper.recipeOutputs.length][];
guiItemStacks.set(0, recipeWrapper.getItemIn());
guiItemStacks.set(1, recipeWrapper.recipeOutputs[0]);
outputSlots[0] = new int[] { 102, 3 };
for (int i = 1; i < recipeWrapper.recipeOutputs.length; i++) {
outputSlots[i] = new int[] { 102 + (i - 1) % 2 * 18, 21 };
guiItemStacks.init(i + 1, false, outputSlots[i][0], outputSlots[i][1]);
guiItemStacks.set(i + 1, recipeWrapper.recipeOutputs[i]);
}
}
Aggregations