/
ICraftingGridHelper.java
46 lines (37 loc) · 1.48 KB
/
ICraftingGridHelper.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
package mezz.jei.api.gui;
import java.util.List;
import mezz.jei.api.IGuiHelper;
import net.minecraft.item.ItemStack;
/**
* Helps set crafting-grid-style {@link IGuiItemStackGroup}.
* This places smaller recipes in the grid in a consistent way.
* Get an instance from {@link IGuiHelper#createCraftingGridHelper(int, int)}.
*/
public interface ICraftingGridHelper {
/**
* Place inputs ingredients onto the crafting grid in a consistent way.
* @since JEI 3.11.2
*/
void setInputStacks(IGuiItemStackGroup guiItemStacks, List<List<ItemStack>> input);
/**
* Place inputs ingredients onto the crafting grid in a consistent way.
* @since JEI 3.11.2
*/
void setInputStacks(IGuiItemStackGroup guiItemStacks, List<List<ItemStack>> input, int width, int height);
/**
* Place output ingredients onto the crafting grid in a consistent way.
*/
void setOutput(IGuiItemStackGroup guiItemStacks, List<ItemStack> output);
/**
* Place inputs ingredients onto the crafting grid in a consistent way.
* @deprecated since JEI 3.11.2. Use {@link #setInputStacks(IGuiItemStackGroup, List)}
*/
@Deprecated
void setInput(IGuiItemStackGroup guiItemStacks, List input);
/**
* Place inputs ingredients onto the crafting grid in a consistent way.
* @deprecated since JEI 3.11.2. Use {@link #setInputStacks(IGuiItemStackGroup, List, int, int)}
*/
@Deprecated
void setInput(IGuiItemStackGroup guiItemStacks, List input, int width, int height);
}