public class RecipeLayout<T>
extends java.lang.Object
implements mezz.jei.api.gui.IRecipeLayoutDrawable
| Modifier and Type | Method and Description |
|---|---|
static <T> RecipeLayout<T> |
create(int index,
mezz.jei.api.recipe.category.IRecipeCategory<T> recipeCategory,
T recipe,
Focus<?> focus,
mezz.jei.api.helpers.IModIdHelper modIdHelper,
int posX,
int posY) |
void |
drawOverlays(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
void |
drawRecipe(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
mezz.jei.api.gui.ingredient.IGuiFluidStackGroup |
getFluidStacks() |
Focus<?> |
getFocus() |
<V> Focus<V> |
getFocus(mezz.jei.api.ingredients.IIngredientType<V> ingredientType) |
GuiIngredient<?> |
getGuiIngredientUnderMouse(double mouseX,
double mouseY) |
<V> mezz.jei.api.gui.ingredient.IGuiIngredientGroup<V> |
getIngredientsGroup(mezz.jei.api.ingredients.IIngredientType<V> ingredientType) |
java.lang.Object |
getIngredientUnderMouse(int mouseX,
int mouseY) |
GuiItemStackGroup |
getItemStacks() |
int |
getPosX() |
int |
getPosY() |
T |
getRecipe() |
mezz.jei.api.recipe.category.IRecipeCategory<?> |
getRecipeCategory() |
RecipeTransferButton |
getRecipeTransferButton() |
boolean |
handleClick(double mouseX,
double mouseY,
int mouseButton) |
boolean |
isMouseOver(double mouseX,
double mouseY) |
void |
moveRecipeTransferButton(int posX,
int posY) |
void |
setPosition(int posX,
int posY) |
void |
setShapeless() |
@Nullable public static <T> RecipeLayout<T> create(int index, mezz.jei.api.recipe.category.IRecipeCategory<T> recipeCategory, T recipe, @Nullable Focus<?> focus, mezz.jei.api.helpers.IModIdHelper modIdHelper, int posX, int posY)
public void setPosition(int posX,
int posY)
setPosition in interface mezz.jei.api.gui.IRecipeLayoutDrawablepublic void drawRecipe(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
drawRecipe in interface mezz.jei.api.gui.IRecipeLayoutDrawablepublic void drawOverlays(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
drawOverlays in interface mezz.jei.api.gui.IRecipeLayoutDrawablepublic boolean isMouseOver(double mouseX,
double mouseY)
isMouseOver in interface mezz.jei.api.gui.IRecipeLayoutDrawable@Nullable
public java.lang.Object getIngredientUnderMouse(int mouseX,
int mouseY)
getIngredientUnderMouse in interface mezz.jei.api.gui.IRecipeLayoutDrawable@Nullable public GuiIngredient<?> getGuiIngredientUnderMouse(double mouseX, double mouseY)
public boolean handleClick(double mouseX,
double mouseY,
int mouseButton)
public GuiItemStackGroup getItemStacks()
getItemStacks in interface mezz.jei.api.gui.IRecipeLayoutpublic mezz.jei.api.gui.ingredient.IGuiFluidStackGroup getFluidStacks()
getFluidStacks in interface mezz.jei.api.gui.IRecipeLayoutpublic <V> mezz.jei.api.gui.ingredient.IGuiIngredientGroup<V> getIngredientsGroup(mezz.jei.api.ingredients.IIngredientType<V> ingredientType)
getIngredientsGroup in interface mezz.jei.api.gui.IRecipeLayoutpublic void moveRecipeTransferButton(int posX,
int posY)
moveRecipeTransferButton in interface mezz.jei.api.gui.IRecipeLayoutpublic void setShapeless()
setShapeless in interface mezz.jei.api.gui.IRecipeLayout@Nullable public Focus<?> getFocus()
getFocus in interface mezz.jei.api.gui.IRecipeLayout@Nullable public <V> Focus<V> getFocus(mezz.jei.api.ingredients.IIngredientType<V> ingredientType)
getFocus in interface mezz.jei.api.gui.IRecipeLayout@Nullable public RecipeTransferButton getRecipeTransferButton()
public mezz.jei.api.recipe.category.IRecipeCategory<?> getRecipeCategory()
getRecipeCategory in interface mezz.jei.api.gui.IRecipeLayoutpublic int getPosX()
public int getPosY()
public T getRecipe()