Search in sources :

Example 6 with IGuiFluidStackGroup

use of mezz.jei.api.gui.IGuiFluidStackGroup 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)

Aggregations

IGuiFluidStackGroup (mezz.jei.api.gui.IGuiFluidStackGroup)6 IGuiItemStackGroup (mezz.jei.api.gui.IGuiItemStackGroup)5 FluidStack (net.minecraftforge.fluids.FluidStack)5 ItemStack (net.minecraft.item.ItemStack)4 List (java.util.List)1