/
IRecipesGui.java
53 lines (46 loc) · 1.32 KB
/
IRecipesGui.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package mezz.jei.api;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
/**
* JEI's gui for displaying recipes. Use this interface to open recipes.
* Get the instance from {@link IJeiRuntime#getRecipesGui()}.
*
* @since JEI 3.2.12
*/
public interface IRecipesGui {
/**
* Show recipes for an {@link ItemStack}.
* Opens the {@link IRecipesGui} if it is closed.
*
* @param focus the {@link ItemStack} result.
*/
void showRecipes(ItemStack focus);
/**
* Show recipes for a {@link FluidStack}.
* Opens the {@link IRecipesGui} if it is closed.
*
* @param focus the {@link FluidStack} result.
*/
void showRecipes(FluidStack focus);
/**
* Show recipes that use an {@link ItemStack} as an ingredient.
* Opens the {@link IRecipesGui} if it is closed.
*
* @param focus the {@link ItemStack} ingredient.
*/
void showUses(ItemStack focus);
/**
* Show recipes that use a {@link FluidStack} as an ingredient.
* Opens the {@link IRecipesGui} if it is closed.
*
* @param focus the {@link FluidStack} ingredient.
*/
void showUses(FluidStack focus);
/**
* Show entire categories of recipes.
*
* @param recipeCategoryUids a list of categories to display, in order. Must not be empty.
*/
void showCategories(List<String> recipeCategoryUids);
}