public class GuiIngredient<T>
extends net.minecraft.client.gui.Gui
implements mezz.jei.api.gui.ingredient.IGuiIngredient<T>
Constructor and Description |
---|
GuiIngredient(int slotIndex,
boolean input,
mezz.jei.api.ingredients.IIngredientRenderer<T> ingredientRenderer,
mezz.jei.api.ingredients.IIngredientHelper<T> ingredientHelper,
net.minecraft.client.renderer.Rectangle2d rect,
int xPadding,
int yPadding,
int cycleOffset) |
Modifier and Type | Method and Description |
---|---|
void |
draw(int xOffset,
int yOffset) |
void |
drawHighlight(int color,
int xOffset,
int yOffset) |
void |
drawOverlays(int xOffset,
int yOffset,
int mouseX,
int mouseY) |
java.util.List<T> |
getAllIngredients() |
T |
getDisplayedIngredient() |
net.minecraft.client.renderer.Rectangle2d |
getRect() |
boolean |
isInput() |
boolean |
isMode(mezz.jei.api.recipe.IFocus.Mode mode) |
boolean |
isMouseOver(double xOffset,
double yOffset,
double mouseX,
double mouseY) |
void |
set(java.util.List<T> ingredients,
Focus<T> focus) |
void |
setBackground(mezz.jei.api.gui.drawable.IDrawable background) |
void |
setTooltipCallback(mezz.jei.api.gui.ingredient.ITooltipCallback<T> tooltipCallback) |
public net.minecraft.client.renderer.Rectangle2d getRect()
public boolean isMouseOver(double xOffset, double yOffset, double mouseX, double mouseY)
@Nullable public T getDisplayedIngredient()
getDisplayedIngredient
in interface mezz.jei.api.gui.ingredient.IGuiIngredient<T>
public java.util.List<T> getAllIngredients()
getAllIngredients
in interface mezz.jei.api.gui.ingredient.IGuiIngredient<T>
public void setBackground(mezz.jei.api.gui.drawable.IDrawable background)
public void setTooltipCallback(@Nullable mezz.jei.api.gui.ingredient.ITooltipCallback<T> tooltipCallback)
public void draw(int xOffset, int yOffset)
public void drawHighlight(int color, int xOffset, int yOffset)
drawHighlight
in interface mezz.jei.api.gui.ingredient.IGuiIngredient<T>
public void drawOverlays(int xOffset, int yOffset, int mouseX, int mouseY)
public boolean isInput()
isInput
in interface mezz.jei.api.gui.ingredient.IGuiIngredient<T>
public boolean isMode(mezz.jei.api.recipe.IFocus.Mode mode)