package mezz.jei.api.gui; import javax.annotation.Nonnull; import java.util.Collection; import java.util.Map; //import mezz.jei.gui.ingredients.IGuiIngredient; /** * IGuiIngredientGroup displays recipe ingredients in a gui. * * If multiple ingredients are set for one index, they will be displayed in rotation. * * @see IGuiItemStackGroup and IGuiFluidStackGroup */ public interface IGuiIngredientGroup<T> { /** * Set the ingredient at slotIndex to a rotating collection of ingredients. */ void set(int slotIndex, @Nonnull Collection<T> ingredients); /** * Set the ingredient at slotIndex to a specific ingredient. */ void set(int slotIndex, @Nonnull T ingredient); /** * Add a callback to alter the tooltip for these ingredients. */ void addTooltipCallback(@Nonnull ITooltipCallback<T> tooltipCallback); /** * Get the ingredients after they have been set. * Used by recipe transfer handlers. */ Map getGuiIngredients(); }