public interface IGuiItemStackGroup extends IGuiIngredientGroup<net.minecraft.item.ItemStack>
| Modifier and Type | Method and Description |
|---|---|
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
ItemStacks must be initialized once, and then can be set many times.
|
void |
set(int slotIndex,
java.util.Collection<net.minecraft.item.ItemStack> itemStacks) |
void |
set(int slotIndex,
net.minecraft.item.ItemStack itemStack) |
void |
setFromRecipe(int slotIndex,
java.util.List ingredients)
Takes a list of ingredients from IRecipeWrapper getInputs or getOutputs
|
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 backgroundvoid setFromRecipe(int slotIndex,
@Nonnull
java.util.List ingredients)
void set(int slotIndex,
@Nonnull
java.util.Collection<net.minecraft.item.ItemStack> itemStacks)
set in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>void set(int slotIndex,
@Nonnull
net.minecraft.item.ItemStack itemStack)
set in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>