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, setOverrideDisplayFocus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTooltipCallback, set, set
getFocus, getGuiIngredients, init, set, set, setOverrideDisplayFocus
public 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)
IGuiItemStackGroup
setFromRecipe
in interface IGuiItemStackGroup
public void setFromRecipe(int slotIndex, java.lang.Object ingredients)
IGuiItemStackGroup
setFromRecipe
in interface IGuiItemStackGroup
public void init(int slotIndex, boolean input, int xPosition, int yPosition)
IGuiItemStackGroup
init
in interface IGuiItemStackGroup
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 backgroundpublic void init(int index, boolean input, int xPosition, int yPosition, int padding)