public interface IGuiIngredientGroup<T>
If multiple ingredients are set for one index, they will be displayed in rotation.
Get an instance from IRecipeLayout
.
IGuiItemStackGroup
,
IGuiFluidStackGroup
Modifier and Type | Method and Description |
---|---|
void |
addTooltipCallback(ITooltipCallback<T> tooltipCallback)
Add a callback to alter the tooltip for these ingredients.
|
IFocus<T> |
getFocus()
Deprecated.
since JEI 3.11.0. Use
IRecipeLayout.getFocus() |
java.util.Map<java.lang.Integer,? extends IGuiIngredient<T>> |
getGuiIngredients()
Get the ingredients after they have been set.
|
void |
init(int slotIndex,
boolean input,
IIngredientRenderer<T> ingredientRenderer,
int xPosition,
int yPosition,
int width,
int height,
int xPadding,
int yPadding)
Initialize a custom guiIngredient for the given slot.
|
void |
set(IIngredients ingredients)
Set all the ingredients in the group, based on the
IIngredients
passed to IRecipeCategory.setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients) . |
void |
set(int slotIndex,
java.util.Collection<T> ingredients)
Deprecated.
since JEI 3.11.0. Use
set(int, List) |
void |
set(int slotIndex,
java.util.List<T> ingredients)
Set the ingredient at slotIndex to a rotating collection of ingredients.
|
void |
set(int slotIndex,
T ingredient)
Set the ingredient at slotIndex to a specific ingredient.
|
void |
setOverrideDisplayFocus(IFocus<T> focus) |
void set(IIngredients ingredients)
IIngredients
passed to IRecipeCategory.setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients)
.void set(int slotIndex, @Nullable java.util.List<T> ingredients)
void set(int slotIndex, @Nullable T ingredient)
void addTooltipCallback(ITooltipCallback<T> tooltipCallback)
java.util.Map<java.lang.Integer,? extends IGuiIngredient<T>> getGuiIngredients()
void init(int slotIndex, boolean input, IIngredientRenderer<T> ingredientRenderer, int xPosition, int yPosition, int width, int height, int xPadding, int yPadding)
IGuiItemStackGroup
and IGuiFluidStackGroup
.
This is for handling mod ingredients registered with IModIngredientRegistration
.slotIndex
- the slot index of this ingredientinput
- whether this slot is an inputingredientRenderer
- the ingredient renderer for this ingredientxPosition
- x position relative to the recipe backgroundyPosition
- y position relative to the recipe backgroundwidth
- width of this ingredientheight
- height of this ingredientxPadding
- the extra x padding added to each side when drawing the ingredientyPadding
- the extra y padding added to each side when drawing the ingredientIGuiItemStackGroup.init(int, boolean, int, int)
,
IGuiFluidStackGroup.init(int, boolean, int, int, int, int, int, boolean, IDrawable)
@Deprecated IFocus<T> getFocus()
IRecipeLayout.getFocus()
@Deprecated void set(int slotIndex, java.util.Collection<T> ingredients)
set(int, List)