public class GuiItemStackGroup extends GuiIngredientGroup<net.minecraft.item.ItemStack,GuiIngredient<net.minecraft.item.ItemStack>> implements IGuiItemStackGroup
focus, guiIngredients, itemCycleOffset| Constructor and Description |
|---|
GuiItemStackGroup() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getHeight(int padding) |
static int |
getWidth(int padding) |
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
Initialize the itemStack at slotIndex.
|
void |
init(int index,
boolean input,
int xPosition,
int yPosition,
int padding) |
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
|
addTooltipCallback, draw, getFocusUnderMouse, getGuiIngredients, set, set, setFocusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTooltipCallback, set, setgetGuiIngredientspublic static int getWidth(int padding)
public static int getHeight(int padding)
public void setFromRecipe(int slotIndex,
@Nonnull
java.util.List ingredients)
IGuiItemStackGroupsetFromRecipe in interface IGuiItemStackGrouppublic void setFromRecipe(int slotIndex,
@Nonnull
java.lang.Object ingredients)
IGuiItemStackGroupsetFromRecipe in interface IGuiItemStackGrouppublic void init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
IGuiItemStackGroupinit in interface IGuiItemStackGroupslotIndex - 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 backgroundpublic void init(int index,
boolean input,
int xPosition,
int yPosition,
int padding)