public class GuiItemStackGroup extends GuiIngredientGroup<net.minecraft.item.ItemStack> implements IGuiItemStackGroup
| Constructor and Description |
|---|
GuiItemStackGroup(IFocus<net.minecraft.item.ItemStack> focus,
int cycleOffset) |
| 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, getFocus, getGuiIngredients, getIngredientUnderMouse, init, set, set, set, set, setOverrideDisplayFocusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTooltipCallback, set, setgetFocus, getGuiIngredients, init, set, set, setOverrideDisplayFocuspublic GuiItemStackGroup(IFocus<net.minecraft.item.ItemStack> focus, int cycleOffset)
public static int getWidth(int padding)
public static int getHeight(int padding)
public void setFromRecipe(int slotIndex,
java.util.List ingredients)
IGuiItemStackGroupsetFromRecipe in interface IGuiItemStackGrouppublic void setFromRecipe(int slotIndex,
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)