public class GuiIngredientGroup<T>
extends java.lang.Object
implements mezz.jei.api.gui.IGuiIngredientGroup<T>
Constructor and Description |
---|
GuiIngredientGroup(java.lang.Class<T> ingredientClass,
mezz.jei.api.recipe.IFocus<T> focus,
int cycleOffset) |
Modifier and Type | Method and Description |
---|---|
void |
addTooltipCallback(mezz.jei.api.gui.ITooltipCallback<T> tooltipCallback) |
void |
draw(net.minecraft.client.Minecraft minecraft,
int xOffset,
int yOffset,
java.awt.Color highlightColor,
int mouseX,
int mouseY) |
java.util.Map<java.lang.Integer,GuiIngredient<T>> |
getGuiIngredients() |
GuiIngredient<T> |
getHoveredIngredient(int xOffset,
int yOffset,
int mouseX,
int mouseY) |
T |
getIngredientUnderMouse(int xOffset,
int yOffset,
int mouseX,
int mouseY) |
void |
init(int slotIndex,
boolean input,
mezz.jei.api.ingredients.IIngredientRenderer<T> ingredientRenderer,
int xPosition,
int yPosition,
int width,
int height,
int xPadding,
int yPadding) |
void |
init(int slotIndex,
boolean input,
int xPosition,
int yPosition) |
void |
set(mezz.jei.api.ingredients.IIngredients ingredients) |
void |
set(int slotIndex,
java.util.List<T> ingredients) |
void |
set(int slotIndex,
T value) |
void |
setBackground(int slotIndex,
mezz.jei.api.gui.IDrawable background) |
void |
setOverrideDisplayFocus(mezz.jei.api.recipe.IFocus<T> focus) |
public void init(int slotIndex, boolean input, int xPosition, int yPosition)
init
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void init(int slotIndex, boolean input, mezz.jei.api.ingredients.IIngredientRenderer<T> ingredientRenderer, int xPosition, int yPosition, int width, int height, int xPadding, int yPadding)
init
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void set(mezz.jei.api.ingredients.IIngredients ingredients)
set
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void set(int slotIndex, @Nullable java.util.List<T> ingredients)
set
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void set(int slotIndex, @Nullable T value)
set
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void setBackground(int slotIndex, mezz.jei.api.gui.IDrawable background)
setBackground
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public void addTooltipCallback(mezz.jei.api.gui.ITooltipCallback<T> tooltipCallback)
addTooltipCallback
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
public java.util.Map<java.lang.Integer,GuiIngredient<T>> getGuiIngredients()
getGuiIngredients
in interface mezz.jei.api.gui.IGuiIngredientGroup<T>
@Nullable public T getIngredientUnderMouse(int xOffset, int yOffset, int mouseX, int mouseY)
@Nullable public GuiIngredient<T> getHoveredIngredient(int xOffset, int yOffset, int mouseX, int mouseY)
public void draw(net.minecraft.client.Minecraft minecraft, int xOffset, int yOffset, java.awt.Color highlightColor, int mouseX, int mouseY)