public interface IGuiItemStackGroup extends IGuiIngredientGroup<net.minecraft.item.ItemStack>
If multiple ItemStacks are set, they will be displayed in rotation. ItemStacks with subtypes and wildcard metadata will be displayed as multiple ItemStacks.
Get an instance from IRecipeLayout.getItemStacks()
.
Modifier and Type | Method and Description |
---|---|
void |
addTooltipCallback(ITooltipCallback<net.minecraft.item.ItemStack> tooltipCallback)
Add a callback to alter the tooltip for these ingredients.
|
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
Initialize the itemStack at slotIndex.
|
void |
set(int slotIndex,
java.util.Collection<net.minecraft.item.ItemStack> itemStacks)
Deprecated.
|
void |
set(int slotIndex,
net.minecraft.item.ItemStack itemStack)
Set the ingredient at slotIndex to a specific ingredient.
|
void |
setFromRecipe(int slotIndex,
java.util.List ingredients)
Deprecated.
since JEI 3.11.2.
Use
IStackHelper.toItemStackList(Object) to convert to a List |
void |
setFromRecipe(int slotIndex,
java.lang.Object ingredients)
Deprecated.
since JEI 3.11.0.
Use
IStackHelper.toItemStackList(Object) to convert to a List |
getFocus, getGuiIngredients, init, set, set, setOverrideDisplayFocus
void init(int slotIndex, boolean input, int xPosition, int yPosition)
slotIndex
- the slot index of this itemStackinput
- whether this slot is an input. Used for the recipe-fill feature.xPosition
- x position of the slot relative to the recipe backgroundyPosition
- y position of the slot relative to the recipe background@Deprecated void setFromRecipe(int slotIndex, java.util.List ingredients)
IStackHelper.toItemStackList(Object)
to convert to a List@Deprecated void setFromRecipe(int slotIndex, java.lang.Object ingredients)
IStackHelper.toItemStackList(Object)
to convert to a List@Deprecated void set(int slotIndex, java.util.Collection<net.minecraft.item.ItemStack> itemStacks)
IGuiIngredientGroup
set
in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>
void set(int slotIndex, @Nullable net.minecraft.item.ItemStack itemStack)
IGuiIngredientGroup
set
in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>
void addTooltipCallback(ITooltipCallback<net.minecraft.item.ItemStack> tooltipCallback)
IGuiIngredientGroup
addTooltipCallback
in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>