public class GuiItemStackGroup extends GuiIngredientGroup<net.minecraft.item.ItemStack> implements IGuiItemStackGroup
Constructor and Description |
---|
GuiItemStackGroup(Focus<net.minecraft.item.ItemStack> focus,
int cycleOffset) |
Modifier and Type | Method and Description |
---|---|
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
Initialize a guiIngredient for the given slot.
|
addTooltipCallback, draw, getGuiIngredients, getHoveredIngredient, getIngredientModId, getOutputSlots, init, set, set, set, setBackground, setOverrideDisplayFocus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTooltipCallback, set
getGuiIngredients, init, set, set, setBackground, setOverrideDisplayFocus
public GuiItemStackGroup(@Nullable Focus<net.minecraft.item.ItemStack> focus, int cycleOffset)
public void init(int slotIndex, boolean input, int xPosition, int yPosition)
IGuiIngredientGroup
IModIngredientRegistration
.
Uses the default IIngredientRenderer
registered for the ingredient list in IModIngredientRegistration.register(IIngredientType, Collection, IIngredientHelper, IIngredientRenderer)
Uses the same 16x16 size as the ingredient list.
For more advanced control over rendering, use IGuiIngredientGroup.init(int, boolean, IIngredientRenderer, int, int, int, int, int, int)
init
in interface IGuiIngredientGroup<net.minecraft.item.ItemStack>
init
in interface IGuiItemStackGroup
init
in class GuiIngredientGroup<net.minecraft.item.ItemStack>
slotIndex
- the slot index of this ingredientinput
- whether this slot is an inputxPosition
- x position relative to the recipe backgroundyPosition
- y position relative to the recipe backgroundIGuiItemStackGroup.init(int, boolean, int, int)
,
IGuiFluidStackGroup.init(int, boolean, int, int, int, int, int, boolean, IDrawable)