public interface IGuiItemStackGroup extends IGuiIngredientGroup<net.minecraft.item.ItemStack>
| 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)
Set the ingredient at slotIndex to a rotating collection of ingredients.
|
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)
Takes a list of ingredients from IRecipeWrapper getInputs or getOutputs
|
void |
setFromRecipe(int slotIndex,
java.lang.Object ingredients)
Takes an Object from IRecipeWrapper getInputs or getOutputs
|
getGuiIngredientsvoid 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 backgroundvoid setFromRecipe(int slotIndex,
@Nonnull
java.util.List ingredients)
void setFromRecipe(int slotIndex,
@Nonnull
java.lang.Object ingredients)
void set(int slotIndex,
@Nonnull
java.util.Collection<net.minecraft.item.ItemStack> itemStacks)
IGuiIngredientGroupset in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>void set(int slotIndex,
@Nonnull
net.minecraft.item.ItemStack itemStack)
IGuiIngredientGroupset in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>void addTooltipCallback(@Nonnull
ITooltipCallback<net.minecraft.item.ItemStack> tooltipCallback)
IGuiIngredientGroupaddTooltipCallback in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>