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, setOverrideDisplayFocusclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTooltipCallback, setgetGuiIngredients, init, set, set, setBackground, setOverrideDisplayFocuspublic GuiItemStackGroup(@Nullable
Focus<net.minecraft.item.ItemStack> focus,
int cycleOffset)
public void init(int slotIndex,
boolean input,
int xPosition,
int yPosition)
IGuiIngredientGroupIModIngredientRegistration.
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 IGuiItemStackGroupinit 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)