public class RecipeLayout extends java.lang.Object implements IRecipeLayoutDrawable
| Modifier and Type | Field and Description |
|---|---|
static int |
recipeTransferButtonIndex |
| Constructor and Description |
|---|
RecipeLayout(int index,
IRecipeCategory<T> recipeCategory,
T recipeWrapper,
IFocus focus,
int posX,
int posY) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)
Draw the recipe layout.
|
IGuiFluidStackGroup |
getFluidStacks()
Contains all the fluidStacks displayed on this recipe layout.
|
IFocus<?> |
getFocus()
The current search focus.
|
<T> IGuiIngredientGroup<T> |
getIngredientsGroup(java.lang.Class<T> ingredientClass)
Get all the ingredients of one class that are displayed on this recipe layout.
|
java.lang.Object |
getIngredientUnderMouse(int mouseX,
int mouseY)
Returns the ingredient currently under the mouse, if there is one.
|
GuiItemStackGroup |
getItemStacks()
Contains all the itemStacks displayed on this recipe layout.
|
int |
getPosX() |
int |
getPosY() |
IRecipeCategory |
getRecipeCategory() |
RecipeTransferButton |
getRecipeTransferButton() |
IRecipeWrapper |
getRecipeWrapper() |
boolean |
handleClick(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY,
int mouseButton) |
boolean |
isMouseOver(int mouseX,
int mouseY)
Returns true if the mouse is hovering over the recipe.
|
void |
setPosition(int posX,
int posY)
Set the position of the recipe layout in screen coordinates.
|
void |
setRecipeTransferButton(int posX,
int posY)
Moves the recipe transfer button's position relative to the recipe layout.
|
public static final int recipeTransferButtonIndex
public RecipeLayout(int index,
IRecipeCategory<T> recipeCategory,
T recipeWrapper,
IFocus focus,
int posX,
int posY)
public void setPosition(int posX,
int posY)
IRecipeLayoutDrawableIRecipeCategory.getBackground().setPosition in interface IRecipeLayoutDrawablepublic void draw(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)
IRecipeLayoutDrawabledraw in interface IRecipeLayoutDrawablepublic boolean isMouseOver(int mouseX,
int mouseY)
IRecipeLayoutDrawableisMouseOver in interface IRecipeLayoutDrawable@Nullable
public java.lang.Object getIngredientUnderMouse(int mouseX,
int mouseY)
IRecipeLayoutDrawablegetIngredientUnderMouse in interface IRecipeLayoutDrawablepublic boolean handleClick(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY,
int mouseButton)
public GuiItemStackGroup getItemStacks()
IRecipeLayoutgetItemStacks in interface IRecipeLayoutpublic IGuiFluidStackGroup getFluidStacks()
IRecipeLayoutgetFluidStacks in interface IRecipeLayoutpublic <T> IGuiIngredientGroup<T> getIngredientsGroup(java.lang.Class<T> ingredientClass)
IRecipeLayout
This method is for handling custom item types, registered with IModIngredientRegistration.
getIngredientsGroup in interface IRecipeLayoutIRecipeLayout.getItemStacks(),
IRecipeLayout.getFluidStacks()public void setRecipeTransferButton(int posX,
int posY)
IRecipeLayoutsetRecipeTransferButton in interface IRecipeLayoutpublic IFocus<?> getFocus()
IRecipeLayoutgetFocus in interface IRecipeLayout@Nullable public RecipeTransferButton getRecipeTransferButton()
public IRecipeWrapper getRecipeWrapper()
public IRecipeCategory getRecipeCategory()
public int getPosX()
public int getPosY()