Search in sources :

Example 6 with IGuiItemStackGroup

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);
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) ItemStack(net.minecraft.item.ItemStack)

Example 7 with IGuiItemStackGroup

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());
}
Also used : IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup)

Example 8 with IGuiItemStackGroup

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));
}
Also used : IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup)

Example 9 with IGuiItemStackGroup

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);
}
Also used : FluidStack(net.minecraftforge.fluids.FluidStack) IGuiFluidStackGroup(mezz.jei.api.gui.IGuiFluidStackGroup) IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup) ItemStack(net.minecraft.item.ItemStack)

Example 10 with IGuiItemStackGroup

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]);
    }
}
Also used : IGuiItemStackGroup(mezz.jei.api.gui.IGuiItemStackGroup)

Aggregations

IGuiItemStackGroup (mezz.jei.api.gui.IGuiItemStackGroup)13 ItemStack (net.minecraft.item.ItemStack)7 IGuiFluidStackGroup (mezz.jei.api.gui.IGuiFluidStackGroup)5 FluidStack (net.minecraftforge.fluids.FluidStack)4 ItemEngineersBlueprint (blusunrize.immersiveengineering.common.items.ItemEngineersBlueprint)1 List (java.util.List)1