/
IRecipeLayout.java
30 lines (26 loc) · 1.02 KB
/
IRecipeLayout.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package mezz.jei.api.gui;
import mezz.jei.api.recipe.IRecipeCategory;
import mezz.jei.api.recipe.IRecipeWrapper;
/**
* Represents the layout of one recipe on-screen.
* Plugins interpret a recipe wrapper to set the properties here.
* It is passed to plugins in {@link IRecipeCategory#setRecipe(IRecipeLayout, IRecipeWrapper)}.
*/
public interface IRecipeLayout {
/**
* Contains all the itemStacks displayed on this recipe layout.
* Init and set them in your recipe category.
*/
IGuiItemStackGroup getItemStacks();
/**
* Contains all the fluidStacks displayed on this recipe layout.
* Init and set them in your recipe category.
*/
IGuiFluidStackGroup getFluidStacks();
/**
* Moves the recipe transfer button's position relative to the recipe layout.
* By default the recipe transfer button is at the bottom, to the right of the recipe.
* If it doesn't fit there, you can use this to move it when you init the recipe layout.
*/
void setRecipeTransferButton(int posX, int posY);
}